summaryrefslogtreecommitdiff
path: root/minecproxy/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'minecproxy/server.c')
-rw-r--r--minecproxy/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/minecproxy/server.c b/minecproxy/server.c
index c6e6480..c1480f3 100644
--- a/minecproxy/server.c
+++ b/minecproxy/server.c
@@ -684,7 +684,7 @@ server_set_systemd_service(struct server *server, const char *service)
suffix = strrchr(service, '.');
if (!suffix || !streq(suffix, ".service")) {
- tmp = zmalloc(strlen(service) + strlen(".service") + 1);
+ tmp = zmalloc(strlen(service) + STRLEN(".service") + 1);
if (tmp)
sprintf(tmp, "%s.service", service);
} else