]> diplodocus.org Git - nmh/commitdiff
Tweak mh_xrealloc(); print size on error, follow POSIX.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 16 Oct 2016 17:08:29 +0000 (18:08 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 16 Oct 2016 17:08:29 +0000 (18:08 +0100)
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.


No differences found