diff options
author | Brian Somers <brian@FreeBSD.org> | 2001-07-09 09:24:06 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 2001-07-09 09:24:06 +0000 |
commit | 7bc6d0158f0e9863a2a13a951321185d214cd3be (patch) | |
tree | a109115514a8774e981280efca775db8a410df5b /usr.bin/script | |
parent | b5b15b9e7fbe55119213a41835516dc91b25e978 (diff) | |
download | src-7bc6d0158f0e9863a2a13a951321185d214cd3be.tar.gz src-7bc6d0158f0e9863a2a13a951321185d214cd3be.zip |
Fix the type of the NULL arg to execl()
Idea from: Theo de Raadt <deraadt@openbsd.org>
Notes
Notes:
svn path=/head/; revision=79452
Diffstat (limited to 'usr.bin/script')
-rw-r--r-- | usr.bin/script/script.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c index 5a19095fd065..b6a59c83a83d 100644 --- a/usr.bin/script/script.c +++ b/usr.bin/script/script.c @@ -245,7 +245,7 @@ doshell(av) execvp(av[0], av); warn("%s", av[0]); } else { - execl(shell, shell, "-i", NULL); + execl(shell, shell, "-i", (char *)NULL); warn("%s", shell); } fail(); |