From: Felix Fietkau Date: Sun, 16 Dec 2012 18:41:58 +0000 (+0100) Subject: fix service name pointer X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=133c19b8e4d1875a2ecb399fcadd29c0f81d98ae;p=oweals%2Fprocd.git fix service name pointer Signed-off-by: Felix Fietkau --- 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);