X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2..ac33b2e9c3632537b93fc4755a925c682d1eb82e:/uip/mhstore.c diff --git a/uip/mhstore.c b/uip/mhstore.c index 518a3048..b756956a 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; }