X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fpackf.c;h=9f71b927df4151dc1cd6c4e8d642edbd4838c7d9;hp=405a005d4e65c8527c5e7b8c7a47ba4d36d088b2;hb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;hpb=582d618b69077087961c367bd1631495906c92a8 diff --git a/uip/packf.c b/uip/packf.c index 405a005..9f71b92 100644 --- a/uip/packf.c +++ b/uip/packf.c @@ -12,6 +12,7 @@ #include #include #include +#include #include /* @@ -67,8 +68,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