replaced calloc with mh_xcalloc
[mmh] / uip / repl.c
index 33d4bf5..c0b290d 100644 (file)
@@ -413,10 +413,10 @@ replout(FILE *inb, char *drft, struct msgs *mp,
        ncomps = fmt_compile(cp, &fmt) + 1;
 
        if (!(nxtbuf = compbuffers = (char **)
-                       calloc((size_t) ncomps, sizeof(char *))))
+                       mh_xcalloc((size_t) ncomps, sizeof(char *))))
                adios(EX_OSERR, NULL, "unable to allocate component buffers");
        if (!(savecomp = used_buf = (struct comp **)
-                       calloc((size_t) (ncomps+1), sizeof(struct comp *))))
+                       mh_xcalloc((size_t) (ncomps+1), sizeof(struct comp *))))
                adios(EX_OSERR, NULL, "unable to allocate component buffer stack");
        savecomp += ncomps + 1;
        *--savecomp = NULL;  /* point at zero'd end minus 1 */