]> diplodocus.org Git - nmh/commit
Tweak mh_xmalloc(); print size in error, allocate zero bytes.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 16 Oct 2016 16:43:56 +0000 (17:43 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 16 Oct 2016 16:43:56 +0000 (17:43 +0100)
commit4d78228c5d21c6320ecca02f587e167d0c6f024d
treec8d44efe1f60986cb2816f255863d128a06efff6
parent8890670d4c1e8e3f9608c2850c1fe299fb256776
Tweak mh_xmalloc();  print size in error, allocate zero bytes.
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 allocate one
rather than exit;  it's sometimes useful to allocate zero, but some
older platforms might not like it.
h/utils.h
sbr/utils.c