diff --git a/checkin_notes b/checkin_notes index 959d15c500..38bbf45cd3 100644 --- a/checkin_notes +++ b/checkin_notes @@ -208,3 +208,10 @@ Rom 7 Jan 2010 clientgui/ ViewNotifications.cpp + +Charlie 6 Jan 2010 + - client: Fix another crash bug due to calling memset(this, 0, sizeof(*this)) + when the data contains a std::string. + + client/ + cs_notice.cpp diff --git a/client/cs_notice.cpp b/client/cs_notice.cpp index ec4af1be1d..6f7f711cfc 100644 --- a/client/cs_notice.cpp +++ b/client/cs_notice.cpp @@ -201,7 +201,7 @@ int NOTICE::parse_rss(XML_PARSER& xp) { char tag[1024], buf[256]; bool is_tag; - memset(this, 0, sizeof(*this)); + clear(); while (!xp.get(tag, sizeof(tag), is_tag)) { if (!is_tag) continue; if (!strcmp(tag, "/item")) return 0;