X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fanno.c;h=d90e0f60c61a8c9148b95dae1b3b3b7b70453998;hp=dca93eb5ee63579c82f73f76f263b065ad6ace5f;hb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;hpb=582d618b69077087961c367bd1631495906c92a8 diff --git a/uip/anno.c b/uip/anno.c index dca93eb..d90e0f6 100644 --- a/uip/anno.c +++ b/uip/anno.c @@ -46,6 +46,7 @@ */ #include +#include /* * We allocate space for messages (msgs array) @@ -127,8 +128,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 == '-') {