summaryrefslogtreecommitdiffstats
path: root/contrib/diff
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2003-11-03 12:41:27 +0000
committerharti <harti@FreeBSD.org>2003-11-03 12:41:27 +0000
commit378fe256e40ab8bd6e33f78bc18a352b44ba41ba (patch)
tree938d69704966903776131305f2ebaf21202b0ec9 /contrib/diff
parent6d5fff6caa6c2b8a0ddb8b72aaf469ed96f344b7 (diff)
downloadFreeBSD-src-378fe256e40ab8bd6e33f78bc18a352b44ba41ba.zip
FreeBSD-src-378fe256e40ab8bd6e33f78bc18a352b44ba41ba.tar.gz
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.
Diffstat (limited to 'contrib/diff')
-rw-r--r--contrib/diff/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/diff/util.c b/contrib/diff/util.c
index 67c4af9..35b28ea 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);
}
OpenPOWER on IntegriCloud