Skip to content

Commit 793f11b

Browse files
committed
fix: NULL-terminate argv array to posix_spawn
1 parent d9a235a commit 793f11b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ int daemon_start(pid_t *pid)
4949
asprintf(&application_executable_path, "%s/hyperiond", HYPERION_PATH);
5050

5151
char *env_vars[] = {env_library_path, env_armcap, NULL};
52-
char *argv[] = {application_executable_path};
52+
char *argv[] = {application_executable_path, NULL};
5353

5454
res = posix_spawn(pid, application_executable_path, NULL, NULL, argv, env_vars);
5555
DBG("posix_spawn: pid=%d, application_path=%s, env={%s,%s}",

0 commit comments

Comments
 (0)