From 592ed5544bea5295f1313308b07bcb722b181d89 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Fri, 20 Feb 2004 17:02:20 +0000 Subject: [PATCH] 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 --- util-vserver/src/stack-start.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.8.1.5