From: deraadt Date: Fri, 14 Feb 1997 16:39:23 +0000 (+0000) Subject: round RLIMIT_STACK; problem spotted by jfw@jfwhome.funhousecom X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=94197cdda55b0d6a61f297ee18b5ecb079902f19;p=openbsd round RLIMIT_STACK; problem spotted by jfw@jfwhome.funhousecom --- diff --git a/sys/kern/exec_subr.c b/sys/kern/exec_subr.c index e8810979a6d..8a766bee2d8 100644 --- a/sys/kern/exec_subr.c +++ b/sys/kern/exec_subr.c @@ -217,7 +217,7 @@ exec_setup_stack(p, epp) epp->ep_maxsaddr = USRSTACK - MAXSSIZ; epp->ep_minsaddr = USRSTACK; - epp->ep_ssize = p->p_rlimit[RLIMIT_STACK].rlim_cur; + epp->ep_ssize = round_page(p->p_rlimit[RLIMIT_STACK].rlim_cur); /* * set up commands for stack. note that this takes *two*, one to