X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;ds=sidebyside;f=uip%2Fmark.c;h=27652e081a221c508caa5aa5f8a5d1b4eb7f2526;hb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;hp=aeed8667300ccf33fe203d9c219767538fd68a63;hpb=582d618b69077087961c367bd1631495906c92a8;p=mmh diff --git a/uip/mark.c b/uip/mark.c index aeed866..27652e0 100644 --- a/uip/mark.c +++ b/uip/mark.c @@ -12,6 +12,7 @@ */ #include +#include /* * We allocate space for messages (msgs array) @@ -81,8 +82,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