diff --git a/src/service.c b/src/service.c index 6a9bd19..4de164a 100644 --- a/src/service.c +++ b/src/service.c @@ -30,7 +30,7 @@ int service_register(int argc, char *argv[]) */ if (!service_argc && !service_argv) { service_argc = argc; - service_argv = calloc(sizeof(void*), (size_t)(argc + 1)); + service_argv = calloc((size_t)(argc + 1), sizeof(void*)); for (i = 0; i < argc; i++) { service_argv[i] = strdup(argv[i]); }