X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fdropsbr.c;h=dae1c3be177a9cbfe879e8d997c1568a32bf6de8;hp=3c5fdd5bfaffdf1c7d342dc420014ecc2dc89bbb;hb=008837e090c008e3afe7a9c8667070bafa091e62;hpb=8f4c5da8971926f7eccc912f7998c343aef3c33b diff --git a/uip/dropsbr.c b/uip/dropsbr.c index 3c5fdd5..dae1c3b 100644 --- a/uip/dropsbr.c +++ b/uip/dropsbr.c @@ -3,14 +3,19 @@ * dropsbr.c -- create/read/manipulate mail drops * * $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 +#include #ifndef MMDFONLY # include # include -# include +# include # include #else # include "dropsbr.h" @@ -31,8 +36,6 @@ #include -extern int errno; - /* * static prototypes */ @@ -222,14 +225,8 @@ mbx_read (FILE *fp, long pos, struct drop **drops, int noisy) if (dp >= ep) { register int curlen = dp - pp; - cp = (struct drop *) realloc ((char *) pp, + cp = (struct drop *) mh_xrealloc ((char *) pp, (size_t) (len += MAXFOLDER) * sizeof(*pp)); - if (cp == NULL) { - if (noisy) - admonish (NULL, "unable to allocate drop storage"); - free ((char *) pp); - return 0; - } dp = cp + curlen, ep = (pp = cp) + len - 1; } }