From 378fe256e40ab8bd6e33f78bc18a352b44ba41ba Mon Sep 17 00:00:00 2001 From: harti Date: Mon, 3 Nov 2003 12:41:27 +0000 Subject: 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. --- contrib/diff/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib/diff/util.c') 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); } -- cgit v1.1