Fix the type of the last arg to execl()

Obtained from: OpenBSD
This commit is contained in:
Brian Somers
2001-07-09 08:17:47 +00:00
parent ffe734e3a2
commit b5b15b9e7f
+1 -1
View File
@@ -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",