From: Andre Noll Date: Sun, 4 Mar 2007 19:10:27 +0000 (+0100) Subject: string.c para_realloc(): report requested size on realloc failures X-Git-Tag: v0.2.16~71 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=50c9de2ed8746a83002f51e74eae7b0378e1785e;p=paraslash.git string.c para_realloc(): report requested size on realloc failures --- diff --git a/string.c b/string.c index 91f96bdc..0a55ed20 100644 --- a/string.c +++ b/string.c @@ -49,7 +49,8 @@ __must_check __malloc void *para_realloc(void *p, size_t size) * to realloc is equivalent to malloc(size) */ if (!(p = realloc(p, size))) { - PARA_EMERG_LOG("%s", "realloc failed, aborting\n"); + PARA_EMERG_LOG("realloc failed (size = %zu), aborting\n", + size); exit(EXIT_FAILURE); } return p;