X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2..08aa8c17c3241bb5c6a997ed2e01e25a4d0089ce:/uip/packf.c?ds=inline diff --git a/uip/packf.c b/uip/packf.c index 9f71b927..6f3638cc 100644 --- a/uip/packf.c +++ b/uip/packf.c @@ -119,9 +119,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; }