projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RSSClient: actualy use the precalculated length for the StrBuf allocation
[citadel.git]
/
citadel
/
modules
/
rssclient
/
rss_atom_parser.c
diff --git
a/citadel/modules/rssclient/rss_atom_parser.c
b/citadel/modules/rssclient/rss_atom_parser.c
index 3d0bbfb908e05c3e2e2120fd975ecc53380a5e9e..86346296244eb3504d1f7b5bccaa532b9b805a50 100644
(file)
--- 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) ;
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"
StrBufPlain(Message, HKEY(
"Content-type: text/html; charset=\"UTF-8\"\r\n\r\n"