X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Frepl.c;h=fa1a7b46c5c7d89a3c3496ce317c442db40b45a9;hp=f1e4bcc431dd213d30728fd5016090b3f43ffd2f;hb=10eff860a28b96582526eb739fd0a55441669938;hpb=d6742b1bb19c7eca8488402484a6e4f55543d789 diff --git a/uip/repl.c b/uip/repl.c index f1e4bcc..fa1a7b4 100644 --- a/uip/repl.c +++ b/uip/repl.c @@ -420,7 +420,7 @@ replout(FILE *inb, char *drft, struct msgs *mp, *--savecomp = NULL; /* point at zero'd end minus 1 */ for (i = ncomps; i--; ) - *nxtbuf++ = mh_xmalloc(SBUFSIZ); + *nxtbuf++ = mh_xcalloc(SBUFSIZ, sizeof(char)); nxtbuf = compbuffers; /* point at start */ tmpbuf = *nxtbuf++; @@ -543,7 +543,7 @@ finished: } } i = format_len + char_read + 256; - scanl = mh_xmalloc((size_t) i + 2); + scanl = mh_xcalloc((size_t) i + 2, sizeof(char)); dat[0] = 0; dat[1] = 0; dat[2] = 0; @@ -646,7 +646,7 @@ formataddr(char *orig, char *str) /* if we don't have a buffer yet, get one */ if (bufsiz == 0) { - buf = mh_xmalloc(BUFINCR); + buf = mh_xcalloc(BUFINCR, sizeof(char)); last_dst = buf; /* XXX */ bufsiz = BUFINCR - 6; /* leave some slop */ bufend = buf + bufsiz;