summaryrefslogtreecommitdiff
path: root/src/user/app/init/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/app/init/init.c')
-rw-r--r--src/user/app/init/init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/user/app/init/init.c b/src/user/app/init/init.c
index 10511b8..96b2eb7 100644
--- a/src/user/app/init/init.c
+++ b/src/user/app/init/init.c
@@ -21,8 +21,9 @@ void redirect(const char *exe, const char *out, const char *in) {
for (;;) {
if (!fork()) {
+ const char *argv[] = {exe, NULL};
termcook();
- execv(exe, NULL);
+ execv(exe, (void*)argv);
fprintf(stderr, "init: couldn't start %s\n", exe);
_syscall_sleep(5000);
exit(1);