X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Frefile.c;h=4d9129155e95c818880d51fed8f741990d60310b;hp=f3c6d1f0ca27fc3315d2c1dac5cae159d240b6de;hb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;hpb=582d618b69077087961c367bd1631495906c92a8 diff --git a/uip/refile.c b/uip/refile.c index f3c6d1f..4d91291 100644 --- a/uip/refile.c +++ b/uip/refile.c @@ -11,6 +11,7 @@ */ #include +#include #include #include @@ -97,8 +98,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