fixed begin of STACK_START for non-growing stacks
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Fri, 20 Feb 2004 17:02:20 +0000 (17:02 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Fri, 20 Feb 2004 17:02:20 +0000 (17:02 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@968 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/src/stack-start.h

index 53aa8c6..1c9b23f 100644 (file)
@@ -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