]> diplodocus.org Git - nmh/blobdiff - uip/mhstore.c
Replaced second line of Content-Tyhpe of -attachformat 0 example.
[nmh] / uip / mhstore.c
index 518a3048a7eb70a427413d4f45e84dfa1c264033..b756956a470971aef884a4abcdb884b6698c4836 100644 (file)
@@ -251,9 +251,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;
        }