X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fpick.c;h=4f26bb2e5d4400e681b3301d86bccbbc1ed094ad;hp=9f4bf0f5746dfa502936bf5700bbe98df5f2dd3c;hb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;hpb=582d618b69077087961c367bd1631495906c92a8 diff --git a/uip/pick.c b/uip/pick.c index 9f4bf0f..4f26bb2 100644 --- a/uip/pick.c +++ b/uip/pick.c @@ -12,6 +12,7 @@ #include #include #include +#include /* * We allocate space for messages (msgs array) @@ -103,8 +104,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))); while ((cp = *argp++)) { if (*cp == '-') {