]> git.marmaro.de Git - mmh/blobdiff - uip/rcvdist.c
replaced calloc with mh_xcalloc
[mmh] / uip / rcvdist.c
index 89bb1dc5747b37eec751b85c203c69bc89d6e547..1337c893fe5693e1e3334c423b1903f1a41ff241 100644 (file)
@@ -171,11 +171,11 @@ rcvdistout(FILE *inb, char *form, char *addrs)
        format_len = strlen(cp);
        ncomps = fmt_compile(cp, &fmt) + 1;
        if (!(nxtbuf = compbuffers =
        format_len = strlen(cp);
        ncomps = fmt_compile(cp, &fmt) + 1;
        if (!(nxtbuf = compbuffers =
-                       (char **) calloc((size_t) ncomps, sizeof(char *)))) {
+                       (char **) mh_xcalloc((size_t) ncomps, sizeof(char *)))) {
                adios(EX_OSERR, NULL, "unable to allocate component buffers");
        }
        if (!(savecomp = used_buf =
                adios(EX_OSERR, NULL, "unable to allocate component buffers");
        }
        if (!(savecomp = used_buf =
-                       (struct comp **) calloc((size_t) (ncomps + 1),
+                       (struct comp **) mh_xcalloc((size_t) (ncomps + 1),
                        sizeof(struct comp *)))) {
                adios(EX_OSERR, NULL, "unable to allocate component buffer stack");
        }
                        sizeof(struct comp *)))) {
                adios(EX_OSERR, NULL, "unable to allocate component buffer stack");
        }