summaryrefslogtreecommitdiffstats
path: root/sal/rtl/source/alloc_global.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/rtl/source/alloc_global.cxx')
-rw-r--r--sal/rtl/source/alloc_global.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/rtl/source/alloc_global.cxx b/sal/rtl/source/alloc_global.cxx
index 59213a11a8ea..7ac963c1cf2b 100644
--- a/sal/rtl/source/alloc_global.cxx
+++ b/sal/rtl/source/alloc_global.cxx
@@ -170,7 +170,7 @@ void * SAL_CALL rtl_reallocateMemory_CUSTOM (void * p, sal_Size n) SAL_THROW_EXT
p = rtl_allocateMemory (n);
if (p != 0)
{
- memcpy (p, p_old, SAL_MIN(n, n_old));
+ memcpy (p, p_old, (n < n_old) ? n : n_old);
rtl_freeMemory (p_old);
}
}