aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>1998-10-14 20:23:40 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>1998-10-14 20:23:40 +0000
commit7ea577e550d414341bd84d7bed58f938d48f3c13 (patch)
tree8efc8d21425f6227128d614403f61d96be2c9070 /lib
parentdea625c8721c5a896b6d2e8c5209fc6ef4802f01 (diff)
downloadsrc-7ea577e550d414341bd84d7bed58f938d48f3c13.tar.gz
src-7ea577e550d414341bd84d7bed58f938d48f3c13.zip
Correct braino in previous commit. I get the pointy hat again.
Notes
Notes: svn path=/head/; revision=40357
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/exec.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/gen/exec.c b/lib/libc/gen/exec.c
index 0770ab31e177..11f9755e2127 100644
--- a/lib/libc/gen/exec.c
+++ b/lib/libc/gen/exec.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)exec.c 8.1 (Berkeley) 6/4/93";
#endif
static const char rcsid[] =
- "$Id: exec.c,v 1.7 1997/11/20 15:09:38 bde Exp $";
+ "$Id: exec.c,v 1.8 1998/10/14 18:53:36 des Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@@ -112,7 +112,7 @@ execl(name, arg, va_alist)
#else
va_start(ap);
#endif
- n = 0;
+ n = 1;
while (va_arg(ap, char *) != NULL)
n++ ;
va_end(ap);
@@ -124,7 +124,8 @@ execl(name, arg, va_alist)
#else
va_start(ap);
#endif
- n = 0;
+ n = 1;
+ argv[0] = arg;
while ((argv[n] = va_arg(ap, char *)) != NULL)
n++;
va_end(ap);