summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-12-16 19:41:58 +0100
committerFelix Fietkau <nbd@openwrt.org>2012-12-16 19:41:58 +0100
commit133c19b8e4d1875a2ecb399fcadd29c0f81d98ae (patch)
tree891d050c3ee421e4f12782230508ae7b3ee67f6c
parent97fb86a27f899e89dfc5ad42af0f28c5b0d4c327 (diff)
downloadunitd-133c19b8e4d1875a2ecb399fcadd29c0f81d98ae.tar
unitd-133c19b8e4d1875a2ecb399fcadd29c0f81d98ae.zip
fix service name pointer
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r--service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/service.c b/service.c
index db11200..27ed8c0 100644
--- a/service.c
+++ b/service.c
@@ -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);