argv alloca'd is too short. Alloc an extra member.

This commit is contained in:
mjacob 1997-11-20 01:26:45 +00:00
parent 6074e1b476
commit eb498a6ab2
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: execl.c,v 1.4 1997/07/21 14:06:54 jtc Exp $ */
/* $NetBSD: execl.c,v 1.5 1997/11/20 01:26:45 mjacob Exp $ */
/*-
* Copyright (c) 1991, 1993
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)exec.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: execl.c,v 1.4 1997/07/21 14:06:54 jtc Exp $");
__RCSID("$NetBSD: execl.c,v 1.5 1997/11/20 01:26:45 mjacob Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -79,7 +79,7 @@ execl(name, arg, va_alist)
int i;
VA_START(ap, arg);
for (i = 1; va_arg(ap, char *) != NULL; i++)
for (i = 2; va_arg(ap, char *) != NULL; i++)
;
va_end(ap);