X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fscan.c;h=3b5683025550b3439030e41137e86bcab6609f45;hp=a53a5bad51522dfbf3ea4c35347c59ed5f3efb6c;hb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;hpb=945aa62b814966a1266a5524bd089a74e0999cd1 diff --git a/uip/scan.c b/uip/scan.c index a53a5ba..3b56830 100644 --- a/uip/scan.c +++ b/uip/scan.c @@ -14,6 +14,7 @@ #include #include #include +#include #include /* @@ -51,7 +52,6 @@ static struct swit switches[] = { { NULL, 0 } }; -extern int errno; /* * global for sbr/formatsbr.c - yech! @@ -97,8 +97,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