From bd057d60eba167871169c243a64dbf9d7d9f4cde Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Sat, 15 Oct 2016 23:40:00 +0100 Subject: [PATCH] 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. --- sbr/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.56.0