diff options
Diffstat (limited to 'src/user/app/shell/shell.c')
-rw-r--r-- | src/user/app/shell/shell.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/user/app/shell/shell.c b/src/user/app/shell/shell.c index d002b38..0196d5b 100644 --- a/src/user/app/shell/shell.c +++ b/src/user/app/shell/shell.c @@ -61,7 +61,9 @@ static void execp(const char *cmd) { memcpy(s, "/bin/", 5); memcpy(s + 5, cmd, cmdlen + 1); - execv(s, NULL); + char *argv[] = {(char*)cmd, NULL}; + + execv(s, argv); free(s); } |