From: Wilfried Goesgens Date: Fri, 25 May 2012 13:09:59 +0000 (+0200) Subject: RSSClient: actualy use the precalculated length for the StrBuf allocation X-Git-Tag: v8.12~72 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=1f6d08274ce7f2bacb657e039880bed95e49e029 RSSClient: actualy use the precalculated length for the StrBuf allocation --- diff --git a/citadel/modules/rssclient/rss_atom_parser.c b/citadel/modules/rssclient/rss_atom_parser.c index 3d0bbfb90..863462962 100644 --- a/citadel/modules/rssclient/rss_atom_parser.c +++ b/citadel/modules/rssclient/rss_atom_parser.c @@ -777,7 +777,7 @@ void rss_save_item(rss_item *ri, rss_aggregator *RSSAggr) msglen += 1024 + StrLength(ri->link) + StrLength(ri->description) ; - Message = NewStrBufPlain(NULL, StrLength(ri->description)); + Message = NewStrBufPlain(NULL, msglen); StrBufPlain(Message, HKEY( "Content-type: text/html; charset=\"UTF-8\"\r\n\r\n"