]> diplodocus.org Git - nmh/commit
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)
commit1bd5129468527b24516a9efed711630a33e41a59
tree8ea02beaa9a7e5facb161ee4eaacd8e8736939ee
parent4d78228c5d21c6320ecca02f587e167d0c6f024d
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.
h/utils.h
sbr/utils.c