undo some more ill advised changes i made based on static analyzer output - they can cause buffer issues

This commit is contained in:
DarthArgus
2016-01-15 23:01:17 -06:00
parent a155f583d0
commit 1ce2c52f5b
9 changed files with 28 additions and 28 deletions
+2 -2
View File
@@ -124,7 +124,7 @@ void RGetAvatarKeywords::pack(ByteStream &msg)
put(msg, m_srcAvatarID);
}
RSearchAvatarKeywords::RSearchAvatarKeywords(const ChatUnicodeString &nodeAddress, const ChatUnicodeString *keywordsList, unsigned keywordsLength)
RSearchAvatarKeywords::RSearchAvatarKeywords(const ChatUnicodeString nodeAddress, const ChatUnicodeString *keywordsList, unsigned keywordsLength)
: GenericRequest(REQUEST_SEARCHAVATARKEYWORDS),
m_keywordsLength(keywordsLength),
m_keywordsList(NULL)
@@ -1282,7 +1282,7 @@ void RClassifyPersistentMessages::pack(ByteStream &msg)
put(msg, m_track);
put(msg, m_srcAvatarID);
put(msg, m_messageIDs.size());
for (idIter = m_messageIDs.begin(); idIter != m_messageIDs.end(); ++idIter)
for (idIter = m_messageIDs.begin(); idIter != m_messageIDs.end(); idIter++)
{
put(msg, *idIter);
}