From: Enrico Scholz Date: Fri, 20 Feb 2004 17:02:20 +0000 (+0000) Subject: fixed begin of STACK_START for non-growing stacks X-Git-Tag: VERSION_0_10~595 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=592ed5544bea5295f1313308b07bcb722b181d89;p=util-vserver.git fixed begin of STACK_START for non-growing stacks git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@968 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/src/stack-start.h b/util-vserver/src/stack-start.h index 53aa8c6..1c9b23f 100644 --- a/util-vserver/src/stack-start.h +++ b/util-vserver/src/stack-start.h @@ -22,7 +22,7 @@ #ifdef HAVE_GROWING_STACK # define STACK_START(PTR) (PTR) #else -# define STACK_START(PTR) ((PTR)+sizeof(PTR)/sizeof(PTR[0])) +# define STACK_START(PTR) ((PTR)+sizeof(PTR)/sizeof(PTR[0])-1) #endif #endif // H_UTIL_VSERVER_SRC_STACK_START_H