X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2..4586e3f4cffbf0f1c3cdd5804d01da16ae714cfe:/uip/mark.c diff --git a/uip/mark.c b/uip/mark.c index 27652e08..03337229 100644 --- a/uip/mark.c +++ b/uip/mark.c @@ -159,9 +159,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; }