X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmhstore.c;h=518a3048a7eb70a427413d4f45e84dfa1c264033;hb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;hp=b56a505219c76b58ac9dca7defc78b1dc21b1df6;hpb=8f4c5da8971926f7eccc912f7998c343aef3c33b;p=mmh diff --git a/uip/mhstore.c b/uip/mhstore.c index b56a505..518a304 100644 --- a/uip/mhstore.c +++ b/uip/mhstore.c @@ -3,6 +3,10 @@ * mhstore.c -- store the contents of MIME messages * * $Id$ + * + * This code is Copyright (c) 2002, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ #include @@ -11,11 +15,12 @@ #include #include #include -#include +#include #include #include #include #include +#include #ifdef HAVE_SYS_WAIT_H # include @@ -65,8 +70,6 @@ static struct swit switches[] = { }; -extern int errno; - /* mhparse.c */ extern int checksw; extern char *tmp; /* directory to place temp files */ @@ -145,8 +148,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