From: Ralph Corderoy Date: Sun, 16 Oct 2016 17:08:29 +0000 (+0100) Subject: Tweak mh_xrealloc(); print size on error, follow POSIX. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/1bd5129468527b24516a9efed711630a33e41a59?ds=inline;hp=1bd5129468527b24516a9efed711630a33e41a59 Tweak mh_xrealloc(); print size on error, follow POSIX. Using `%zu' for the size_t value. That might be a problem on older platforms, but we'll see. If asked for zero bytes then free an existing pointer, only passing it to free(3) if it's non-NULL, and then allocate a byte so a unique pointer is returned. ---