X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Frmm.c;h=b9fd80dcfa9bec7f77251b0038e04bfbdc1f745f;hp=b25f083f34bd21bf9bbffeba2cc8695fd9a7dfab;hb=d2da15ecabb03fb2de72863abdf5f21e52fdf329;hpb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2 diff --git a/uip/rmm.c b/uip/rmm.c index b25f083..b9fd80d 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; }