X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Frepl.c;h=c0b290de7bae568024cfd5f892bd9a46d6d6e0f3;hp=33d4bf5510fda9df74c5383c747dba6172fe7a55;hb=e16d5bfc58d8b0dfe61701cd4d6b1732e837d60a;hpb=72795bfcbe9f7fee8927b1a4942c0230b0f857a8 diff --git a/uip/repl.c b/uip/repl.c index 33d4bf5..c0b290d 100644 --- a/uip/repl.c +++ b/uip/repl.c @@ -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 */