RSSClient: actualy use the precalculated length for the StrBuf allocation
[citadel.git] / citadel / modules / rssclient / rss_atom_parser.c
index 3d0bbfb908e05c3e2e2120fd975ecc53380a5e9e..86346296244eb3504d1f7b5bccaa532b9b805a50 100644 (file)
@@ -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"