aboutsummaryrefslogtreecommitdiff
path: root/src/util/common_allocation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/common_allocation.c')
-rw-r--r--src/util/common_allocation.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/util/common_allocation.c b/src/util/common_allocation.c
index f0299a223..f5b683569 100644
--- a/src/util/common_allocation.c
+++ b/src/util/common_allocation.c
@@ -234,6 +234,7 @@ GNUNET_xmalloc_unchecked_ (size_t size,
234/** 234/**
235 * Reallocate memory. Checks the return value, aborts if no more 235 * Reallocate memory. Checks the return value, aborts if no more
236 * memory is available. 236 * memory is available.
237 * The content of the intersection of the new and old size will be unchanged.
237 * 238 *
238 * @param ptr the pointer to reallocate 239 * @param ptr the pointer to reallocate
239 * @param n how many bytes of memory to allocate 240 * @param n how many bytes of memory to allocate
@@ -243,9 +244,9 @@ GNUNET_xmalloc_unchecked_ (size_t size,
243 */ 244 */
244void * 245void *
245GNUNET_xrealloc_ (void *ptr, 246GNUNET_xrealloc_ (void *ptr,
246 size_t n, 247 size_t n,
247 const char *filename, 248 const char *filename,
248 int linenumber) 249 int linenumber)
249{ 250{
250#ifdef W32_MEM_LIMIT 251#ifdef W32_MEM_LIMIT
251 n += sizeof (size_t); 252 n += sizeof (size_t);