X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/582d618b69077087961c367bd1631495906c92a8..81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2:/uip/mhlist.c diff --git a/uip/mhlist.c b/uip/mhlist.c index 4fc17dca..56d9398f 100644 --- a/uip/mhlist.c +++ b/uip/mhlist.c @@ -20,6 +20,7 @@ #include #include #include +#include #ifdef HAVE_SYS_WAIT_H # include @@ -153,8 +154,7 @@ main (int argc, char **argv) */ nummsgs = 0; maxmsgs = MAXMSGS; - if (!(msgs = (char **) malloc ((size_t) (maxmsgs * sizeof(*msgs))))) - adios (NULL, "unable to allocate storage"); + msgs = (char **) mh_xmalloc ((size_t) (maxmsgs * sizeof(*msgs))); /* * Parse arguments