Align the stack even if envp is NULL.

This commit is contained in:
mycroft 1995-02-22 01:39:56 +00:00
parent 190e2004e6
commit e8f67573e2
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_exec.c,v 1.60 1995/02/04 14:44:48 mycroft Exp $ */
/* $NetBSD: kern_exec.c,v 1.61 1995/02/22 01:39:56 mycroft Exp $ */
/*-
* Copyright (C) 1993, 1994 Christopher G. Demetriou
@ -330,9 +330,10 @@ execve(p, uap, retval)
cpp++;
envc++;
}
dp = (char *) ALIGN(dp);
}
dp = (char *) ALIGN(dp);
/* Now check if args & environ fit into new stack */
len = ((argc + envc + 2 + pack.ep_setup_arglen) * sizeof(char *) +
sizeof(int) + dp + STACKGAPLEN + szsigcode +