diff options
author | brian <brian@FreeBSD.org> | 2001-07-09 09:24:06 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2001-07-09 09:24:06 +0000 |
commit | 8636b161b333b18525b6f5ffc5139079c29c0d63 (patch) | |
tree | a109115514a8774e981280efca775db8a410df5b /bin/pax | |
parent | ef44874abb9460f2956eba8e3233154af304f5b1 (diff) | |
download | FreeBSD-src-8636b161b333b18525b6f5ffc5139079c29c0d63.zip FreeBSD-src-8636b161b333b18525b6f5ffc5139079c29c0d63.tar.gz |
Fix the type of the NULL arg to execl()
Idea from: Theo de Raadt <deraadt@openbsd.org>
Diffstat (limited to 'bin/pax')
-rw-r--r-- | bin/pax/ar_io.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/pax/ar_io.c b/bin/pax/ar_io.c index 12fe522..3651ca0 100644 --- a/bin/pax/ar_io.c +++ b/bin/pax/ar_io.c @@ -1345,7 +1345,8 @@ ar_start_gzip(int fd, const char *gzip_program, int wr) } close(fds[0]); close(fds[1]); - if (execlp(gzip_program, gzip_program, gzip_flags, NULL) < 0) + if (execlp(gzip_program, gzip_program, gzip_flags, + (char *)NULL) < 0) err(1, "could not exec"); /* NOTREACHED */ } |