X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhlist.c;h=03480b3cc88a456bcd610d346beb2971c1d1e42d;hp=56d9398f91395faae30318eb6bf70feba9efb64b;hb=008837e090c008e3afe7a9c8667070bafa091e62;hpb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2 diff --git a/uip/mhlist.c b/uip/mhlist.c index 56d9398..03480b3 100644 --- a/uip/mhlist.c +++ b/uip/mhlist.c @@ -264,9 +264,8 @@ do_cache: */ if (nummsgs >= maxmsgs) { maxmsgs += MAXMSGS; - if (!(msgs = (char **) realloc (msgs, - (size_t) (maxmsgs * sizeof(*msgs))))) - adios (NULL, "unable to reallocate msgs storage"); + msgs = (char **) mh_xrealloc (msgs, + (size_t) (maxmsgs * sizeof(*msgs))); } msgs[nummsgs++] = cp; }