X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2..2f9092c19632024cc7c868612b82c603b7db534f:/uip/rmm.c diff --git a/uip/rmm.c b/uip/rmm.c index b25f083f..b9fd80dc 100644 --- a/uip/rmm.c +++ b/uip/rmm.c @@ -98,9 +98,8 @@ main (int argc, char **argv) */ 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; }