X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Frcvdist.c;h=53cc0f0cd8e9302dbcdbfc1ff7eb7eea106cdd13;hp=1337c893fe5693e1e3334c423b1903f1a41ff241;hb=7a13a5266a14f1c6a13752db9292cd40c1211fba;hpb=6e27d395a60fe59a274edc47989b9b8127359f36 diff --git a/uip/rcvdist.c b/uip/rcvdist.c index 1337c89..53cc0f0 100644 --- a/uip/rcvdist.c +++ b/uip/rcvdist.c @@ -170,15 +170,11 @@ rcvdistout(FILE *inb, char *form, char *addrs) cp = new_fs(form ? form : rcvdistcomps, NULL); format_len = strlen(cp); ncomps = fmt_compile(cp, &fmt) + 1; - if (!(nxtbuf = compbuffers = - (char **) mh_xcalloc((size_t) ncomps, sizeof(char *)))) { - adios(EX_OSERR, NULL, "unable to allocate component buffers"); - } - if (!(savecomp = used_buf = + nxtbuf = compbuffers = + (char **) mh_xcalloc((size_t) ncomps, sizeof(char *)); + savecomp = used_buf = (struct comp **) mh_xcalloc((size_t) (ncomps + 1), - sizeof(struct comp *)))) { - adios(EX_OSERR, NULL, "unable to allocate component buffer stack"); - } + sizeof(struct comp *)); savecomp += ncomps + 1; *--savecomp = 0;