fix service name pointer
[project/procd.git] / service.c
index db11200..27ed8c0 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);