diff options
author | tjr <tjr@FreeBSD.org> | 2004-04-09 11:32:32 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-04-09 11:32:32 +0000 |
commit | f2bb7f8613d48d09af13db6c5aaa0e98dbed48e1 (patch) | |
tree | ff47fa59956f853aced5a72f94e05241de91b7bd /lib | |
parent | 9e9fb7be4dadb385bbc975d38ded49df37044bd9 (diff) | |
download | FreeBSD-src-f2bb7f8613d48d09af13db6c5aaa0e98dbed48e1.zip FreeBSD-src-f2bb7f8613d48d09af13db6c5aaa0e98dbed48e1.tar.gz |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/wordexp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |