From 24a934cdee9f410c2b1106f81040c195558ced7c Mon Sep 17 00:00:00 2001 From: mrg Date: Thu, 11 May 2006 00:22:52 +0000 Subject: 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. --- larn/tok.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'larn') diff --git a/larn/tok.c b/larn/tok.c index 9bacaed4..a713a0c5 100644 --- a/larn/tok.c +++ b/larn/tok.c @@ -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 #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 @@ -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); -- cgit v1.2.3-56-ge451