Fix the type of the last arg to execl()
Obtained from: OpenBSD
This commit is contained in:
parent
ea8d486d2b
commit
ef44874abb
@ -558,7 +558,7 @@ ShellCommand(struct cmdargs const *arg, int bg)
|
||||
if (arg->prompt)
|
||||
printf("ppp: Pausing until %s finishes\n", shell);
|
||||
prompt_TtyOldMode(arg->prompt);
|
||||
execl(shell, shell, NULL);
|
||||
execl(shell, shell, (char *)NULL);
|
||||
}
|
||||
|
||||
log_Printf(LogWARN, "exec() of %s failed: %s\n",
|
||||
|
Loading…
Reference in New Issue
Block a user