fix service name pointer
authorFelix Fietkau <nbd@openwrt.org>
Sun, 16 Dec 2012 18:41:58 +0000 (19:41 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 16 Dec 2012 18:41:58 +0000 (19:41 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
service.c

index db11200c0237b1547a1399d5bd84bc153fdbd931..27ed8c0a5ca3cad7485c8e807569f3eb39544bd8 100644 (file)
--- 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);