diff options
author | mrg <mrg@NetBSD.org> | 2006-05-11 00:22:52 +0000 |
---|---|---|
committer | mrg <mrg@NetBSD.org> | 2006-05-11 00:22:52 +0000 |
commit | 24a934cdee9f410c2b1106f81040c195558ced7c (patch) | |
tree | 825adf7e3b887677337fcc343bcc069cdb1ddae7 /larn | |
parent | 6e71b7bf6cbc783c53db4dc7572aaf2ce729f46e (diff) | |
download | bsdgames-darwin-24a934cdee9f410c2b1106f81040c195558ced7c.tar.gz bsdgames-darwin-24a934cdee9f410c2b1106f81040c195558ced7c.tar.zst bsdgames-darwin-24a934cdee9f410c2b1106f81040c195558ced7c.zip |
end the argument list to exec*(3) with a NULL instead of a bare '0', as
the latter isn't a pointer context in these varargs functions.
Diffstat (limited to 'larn')
-rw-r--r-- | larn/tok.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,9 +1,9 @@ -/* $NetBSD: tok.c,v 1.5 1997/10/18 20:03:54 christos Exp $ */ +/* $NetBSD: tok.c,v 1.6 2006/05/11 00:22:52 mrg Exp $ */ /* tok.c Larn is copyrighted 1986 by Noah Morgan. */ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: tok.c,v 1.5 1997/10/18 20:03:54 christos Exp $"); +__RCSID("$NetBSD: tok.c,v 1.6 2006/05/11 00:22:52 mrg Exp $"); #endif /* not lint */ #include <sys/types.h> @@ -98,7 +98,7 @@ yylex() clear();/* scrolling region, home, clear, no * attributes */ if ((ic = fork()) == 0) { /* child */ - execl("/bin/csh", 0); + execl("/bin/csh", "/bin/csh", NULL); exit(1); } wait(0); |