diff options
Diffstat (limited to 'sal/rtl/alloc_global.cxx')
-rw-r--r-- | sal/rtl/alloc_global.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/rtl/alloc_global.cxx b/sal/rtl/alloc_global.cxx index 25e2c1ea78b6..efbd2748dbf8 100644 --- a/sal/rtl/alloc_global.cxx +++ b/sal/rtl/alloc_global.cxx @@ -137,7 +137,7 @@ void * rtl_reallocateMemory_CUSTOM (void * p, sal_Size n) SAL_THROW_EXTERN_C() p = rtl_allocateMemory (n); if (p) { - memcpy (p, p_old, (n < n_old) ? n : n_old); + memcpy (p, p_old, std::min(n, n_old)); rtl_freeMemory (p_old); } } |