1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-30 03:26:23 -04:00

cgi: Ensure correct type of NULL pointer to variadic execl.

This commit is contained in:
Kalle Olavi Niemitalo 2007-03-10 13:19:31 +02:00 committed by Kalle Olavi Niemitalo
parent 2828d587b2
commit 4c636d74f1

View File

@ -368,7 +368,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);
}