diff options
author | des <des@FreeBSD.org> | 1998-10-14 20:23:40 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 1998-10-14 20:23:40 +0000 |
commit | ff71bd049bd43661c76ed8cfecb69b5ae0794f94 (patch) | |
tree | f97793bd8b42f3b50d8d34c7641831471ae3edfb | |
parent | e907ba88d048b4d54ed55f1c81dc3d19c0e877d6 (diff) | |
download | FreeBSD-src-ff71bd049bd43661c76ed8cfecb69b5ae0794f94.zip FreeBSD-src-ff71bd049bd43661c76ed8cfecb69b5ae0794f94.tar.gz |
Correct braino in previous commit. I get the pointy hat again.
-rw-r--r-- | lib/libc/gen/exec.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/gen/exec.c b/lib/libc/gen/exec.c index 0770ab3..11f9755 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); |