X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2..37da2ed2b9d461967bde48cfc506f7ffd4a0cd78:/uip/mhshow.c diff --git a/uip/mhshow.c b/uip/mhshow.c index c61e9170..909c440b 100644 --- a/uip/mhshow.c +++ b/uip/mhshow.c @@ -305,9 +305,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; }