From 133c19b8e4d1875a2ecb399fcadd29c0f81d98ae Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 16 Dec 2012 19:41:58 +0100 Subject: [PATCH] fix service name pointer Signed-off-by: Felix Fietkau --- service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2