mirror of
https://github.com/rkd77/elinks.git
synced 2024-10-02 03:46:21 -04:00
cgi: Ensure correct type of NULL pointer to variadic execl.
[ Backported from commit 4c636d74f1
in ELinks 0.12.GIT. --KON ]
This commit is contained in:
parent
4a624fceb8
commit
8d9837a015
@ -347,7 +347,7 @@ execute_cgi(struct connection *conn)
|
||||
close_all_non_term_fd();
|
||||
|
||||
last_slash[-1] = 0; set_cwd(script); last_slash[-1] = '/';
|
||||
if (execl(script, script, NULL)) {
|
||||
if (execl(script, script, (char *) NULL)) {
|
||||
_exit(3);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user