X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhl.c;h=15489ff6631eb65e941d75420100e78e92342509;hp=6989c70597aca954529be3ae43fe6cf1d2850060;hb=10eff860a28b96582526eb739fd0a55441669938;hpb=d6742b1bb19c7eca8488402484a6e4f55543d789 diff --git a/uip/mhl.c b/uip/mhl.c index 6989c70..15489ff 100644 --- a/uip/mhl.c +++ b/uip/mhl.c @@ -674,7 +674,7 @@ mhlfile(FILE *fp, char *mname, int ofilen, int ofilec) continue; } if (dobody && !mh_strcasecmp(c1->c_name, "body")) { - holder.c_text = mh_xmalloc(sizeof(buf)); + holder.c_text = mh_xcalloc(sizeof(buf), sizeof(char)); strncpy(holder.c_text, buf, sizeof(buf)); while (state == BODY) { putcomp(c1, &holder, BODYCOMP);