X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhstore.c;h=b756956a470971aef884a4abcdb884b6698c4836;hp=518a3048a7eb70a427413d4f45e84dfa1c264033;hb=008837e090c008e3afe7a9c8667070bafa091e62;hpb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2 diff --git a/uip/mhstore.c b/uip/mhstore.c index 518a304..b756956 100644 --- a/uip/mhstore.c +++ b/uip/mhstore.c @@ -251,9 +251,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; }