summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/exec.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>1998-10-14 20:23:40 +0000
committerdes <des@FreeBSD.org>1998-10-14 20:23:40 +0000
commitff71bd049bd43661c76ed8cfecb69b5ae0794f94 (patch)
treef97793bd8b42f3b50d8d34c7641831471ae3edfb /lib/libc/gen/exec.c
parente907ba88d048b4d54ed55f1c81dc3d19c0e877d6 (diff)
downloadFreeBSD-src-ff71bd049bd43661c76ed8cfecb69b5ae0794f94.zip
FreeBSD-src-ff71bd049bd43661c76ed8cfecb69b5ae0794f94.tar.gz
Correct braino in previous commit. I get the pointy hat again.
Diffstat (limited to 'lib/libc/gen/exec.c')
-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 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);
OpenPOWER on IntegriCloud