summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);