From f2bb7f8613d48d09af13db6c5aaa0e98dbed48e1 Mon Sep 17 00:00:00 2001 From: tjr Date: Fri, 9 Apr 2004 11:32:32 +0000 Subject: Terminate execl()'s argument list with a null pointer instead of a null pointer constant. (The latter may be an integer constant, which is not correct here.) Submitted by: Stefan Farfeleder --- lib/libc/gen/wordexp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc/gen/wordexp.c') diff --git a/lib/libc/gen/wordexp.c b/lib/libc/gen/wordexp.c index 9bdb121..46ccb2f 100644 --- a/lib/libc/gen/wordexp.c +++ b/lib/libc/gen/wordexp.c @@ -128,7 +128,7 @@ we_askshell(const char *words, wordexp_t *we, int flags) _close(devnull); } execl(_PATH_BSHELL, "sh", flags & WRDE_UNDEF ? "-u" : "+u", - "-c", cmd, NULL); + "-c", cmd, (char *)NULL); _exit(1); } -- cgit v1.1