From: Ralph Corderoy Date: Sat, 15 Oct 2016 22:40:00 +0000 (+0100) Subject: Fix error message when attempting to xmh_realloc() 0 bytes. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/bd057d60eba167871169c243a64dbf9d7d9f4cde?hp=0ade9a7dda420f7e50a83977f75f90ab7b488279 Fix error message when attempting to xmh_realloc() 0 bytes. Though really, I'd expect it to perform a free(3) then, as the real realloc(3) does. --- diff --git a/sbr/utils.c b/sbr/utils.c index f24f00de..4a460762 100644 --- a/sbr/utils.c +++ b/sbr/utils.c @@ -56,7 +56,7 @@ mh_xrealloc(void *ptr, size_t size) return mh_xmalloc(size); if (size == 0) - adios(NULL, "Tried to realloc 0bytes"); + adios(NULL, "Tried to realloc 0 bytes"); memory = realloc(ptr, size); if (!memory)