diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-12-16 19:41:58 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-12-16 19:41:58 +0100 |
commit | 133c19b8e4d1875a2ecb399fcadd29c0f81d98ae (patch) | |
tree | 891d050c3ee421e4f12782230508ae7b3ee67f6c | |
parent | 97fb86a27f899e89dfc5ad42af0f28c5b0d4c327 (diff) | |
download | unitd-133c19b8e4d1875a2ecb399fcadd29c0f81d98ae.tar unitd-133c19b8e4d1875a2ecb399fcadd29c0f81d98ae.zip |
fix service name pointer
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r-- | service.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -57,7 +57,7 @@ service_alloc(const char *name) s = calloc(1, sizeof(*s) + strlen(name) + 1); - new_name = (char *) s + 1; + new_name = (char *) (s + 1); strcpy(new_name, name); vlist_init(&s->instances, avl_strcmp, service_instance_update); |