summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2006-05-09 06:24:51 +0000
committerRüdiger Timm <rt@openoffice.org>2006-05-09 06:24:51 +0000
commit6960637e085b07afc5e716b16ebdf4ef22f38fe7 (patch)
tree2410c84cbb39fa4da91efd5964d43e163aee72a5
parent3b249af665c3e36a8c0af1d64b50563f4821e5a4 (diff)
#i65124# Compute correct size of old block (by mhu).
-rw-r--r--sal/rtl/source/alloc_global.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sal/rtl/source/alloc_global.c b/sal/rtl/source/alloc_global.c
index c05e241b4b54..4a296070fed5 100644
--- a/sal/rtl/source/alloc_global.c
+++ b/sal/rtl/source/alloc_global.c
@@ -4,9 +4,9 @@
*
* $RCSfile: alloc_global.c,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: rt $ $Date: 2006-05-02 12:12:23 $
+ * last change: $Author: rt $ $Date: 2006-05-09 07:24:51 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -266,7 +266,7 @@ void * SAL_CALL rtl_reallocateMemory (void * p, sal_Size n)
if (p != 0)
{
void * p_old = p;
- sal_Size n_old = ((sal_Size*)( (char*)(p) - RTL_MEMALIGN ))[0];
+ sal_Size n_old = ((sal_Size*)( (char*)(p) - RTL_MEMALIGN ))[0] - RTL_MEMALIGN;
p = rtl_allocateMemory (n);
if (p != 0)