diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-08-24 23:01:27 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-08-24 23:01:27 +0000 |
commit | 6b3fb789a3bc5b409b10948c64de2f9489517e6a (patch) | |
tree | 030fb437fb76f4c93a0d582cac1253e410dc9242 /sys | |
parent | 124a6ef5003c8d2756817de2c8e82bdf6a4244fc (diff) |
back out the last change as it seems to produce problems found by brad@; deraadt@ ok
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_exec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 3e516e2b28f..bb01a0e6d07 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_exec.c,v 1.89 2004/08/01 06:25:54 mickey Exp $ */ +/* $OpenBSD: kern_exec.c,v 1.90 2004/08/24 23:01:26 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 + STACKGAPLEN; - slen = len - STACKGAPLEN; + stack = (char *)USRSTACK + sizeof(arginfo); + slen = len - sizeof(arginfo); #else stack = (char *)(USRSTACK - len); #endif |