From 8d9837a01503c4c0a9e96a519f89f95c75b9079f Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Sat, 10 Mar 2007 13:19:31 +0200 Subject: [PATCH] cgi: Ensure correct type of NULL pointer to variadic execl. [ Backported from commit 4c636d74f1ee418b2dd6bc175954abb4ceb38b35 in ELinks 0.12.GIT. --KON ] --- src/protocol/file/cgi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol/file/cgi.c b/src/protocol/file/cgi.c index 1bbd5168..9403dae7 100644 --- a/src/protocol/file/cgi.c +++ b/src/protocol/file/cgi.c @@ -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); }