summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2004-08-01 06:25:55 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2004-08-01 06:25:55 +0000
commitbd60f59e68067a068d6880db0077bb1ba34cb6ca (patch)
tree37bf5cda9798a351c893089e4dae885ca43badd2 /sys/kern
parentd59991a76955f028a8326881e8eef24d6dd3f521 (diff)
leave space for stackgap on growsuppers
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_exec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index cfb0ecc0bef..3e516e2b28f 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_exec.c,v 1.88 2004/07/07 07:31:40 marius Exp $ */
+/* $OpenBSD: kern_exec.c,v 1.89 2004/08/01 06:25:54 mickey Exp $ */
/* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */
/*-
@@ -437,8 +437,8 @@ sys_execve(p, v, retval)
arginfo.ps_nenvstr = envc;
#ifdef MACHINE_STACK_GROWS_UP
- stack = (char *)USRSTACK + sizeof(arginfo);
- slen = len - sizeof(arginfo);
+ stack = (char *)USRSTACK + STACKGAPLEN;
+ slen = len - STACKGAPLEN;
#else
stack = (char *)(USRSTACK - len);
#endif