diff options
author | Hartmut Brandt <harti@FreeBSD.org> | 2003-11-03 12:41:27 +0000 |
---|---|---|
committer | Hartmut Brandt <harti@FreeBSD.org> | 2003-11-03 12:41:27 +0000 |
commit | b41f9c7d796d10ecdb1d68b1de9b5255c0995a32 (patch) | |
tree | 938d69704966903776131305f2ebaf21202b0ec9 /contrib/diff | |
parent | 34eee97206f246410da41530e2647010ee19d4c5 (diff) | |
download | src-b41f9c7d796d10ecdb1d68b1de9b5255c0995a32.tar.gz src-b41f9c7d796d10ecdb1d68b1de9b5255c0995a32.zip |
Terminate the execl() argument list with (char *)NULL instead of 0.
The later is wrong and may fail on sizeof(char *) != sizeof(int)
machines. The patch has already been sent to and accepted by the
diffutils author, but the file is already off the vendor branch, so
correct it here in the meanwhile too.
Notes
Notes:
svn path=/head/; revision=121951
Diffstat (limited to 'contrib/diff')
-rw-r--r-- | contrib/diff/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/diff/util.c b/contrib/diff/util.c index 67c4af939e6f..35b28eae7f40 100644 --- a/contrib/diff/util.c +++ b/contrib/diff/util.c @@ -210,9 +210,9 @@ begin_output () close (pipes[0]); } #ifdef __FreeBSD__ - execl (PR_PROGRAM, PR_PROGRAM, "-F", "-h", name, 0); + execl (PR_PROGRAM, PR_PROGRAM, "-F", "-h", name, (char *)NULL); #else - execl (PR_PROGRAM, PR_PROGRAM, "-f", "-h", name, 0); + execl (PR_PROGRAM, PR_PROGRAM, "-f", "-h", name, (char *)NULL); #endif pfatal_with_name (PR_PROGRAM); } |