X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=webcit%2Fmsg_renderers.c;h=1c0840f64267bee17c66d421b02967fac58a0781;hp=dbb69d20bf0510a0e0c177389c94ba6d6ac64449;hb=016d4c328531362f6af77193507daec7e3c70de3;hpb=79eb9220e8c19b7625f687c013f6c22b57ebbd1e diff --git a/webcit/msg_renderers.c b/webcit/msg_renderers.c index dbb69d20b..1c0840f64 100644 --- a/webcit/msg_renderers.c +++ b/webcit/msg_renderers.c @@ -674,7 +674,7 @@ int Conditional_MAIL_SUMM_H_NODE(StrBuf *Target, WCTemplputParams *TP) void examine_text(message_summary *Msg, StrBuf *HdrLine, StrBuf *FoundCharset) { - Msg->MsgBody->Data = NewStrBuf(); + Msg->MsgBody->Data = NewStrBufPlain(NULL, SIZ); } void examine_msg4_partnum(message_summary *Msg, StrBuf *HdrLine, StrBuf *FoundCharset) @@ -853,9 +853,9 @@ void render_MAIL_text_plain(wc_mime_attachment *Mime, StrBuf *RawData, StrBuf *F } } #endif - Line = NewStrBuf(); - Line1 = NewStrBuf(); - Line2 = NewStrBuf(); + Line = NewStrBufPlain(NULL, SIZ); + Line1 = NewStrBufPlain(NULL, SIZ); + Line2 = NewStrBufPlain(NULL, SIZ); Target = NewStrBufPlain(NULL, StrLength(Mime->Data)); while ((n = StrBufSipLine(Line, Mime->Data, &BufPtr), n >= 0) && !done)