aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/message.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:59 -0500
committerJacek Antonelli2008-08-15 23:44:59 -0500
commita408bac29378072fbf36864164149458c978cfcc (patch)
tree67feccf1a5d3816611ba48d6762f86f0f7f4b1f6 /linden/indra/llmessage/message.cpp
parentSecond Life viewer sources 1.17.0.12 (diff)
downloadmeta-impy-a408bac29378072fbf36864164149458c978cfcc.zip
meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.gz
meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.bz2
meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.xz
Second Life viewer sources 1.17.1.0
Diffstat (limited to '')
-rw-r--r--linden/indra/llmessage/message.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/linden/indra/llmessage/message.cpp b/linden/indra/llmessage/message.cpp
index ab41cca..d1c2875 100644
--- a/linden/indra/llmessage/message.cpp
+++ b/linden/indra/llmessage/message.cpp
@@ -1341,7 +1341,7 @@ LLMessageSystem::~LLMessageSystem()
1341 1341
1342 if (!mbError) 1342 if (!mbError)
1343 { 1343 {
1344 end_net(); 1344 end_net(mSocket);
1345 } 1345 }
1346 1346
1347 delete mTemplateMessageReader; 1347 delete mTemplateMessageReader;
@@ -1355,6 +1355,9 @@ LLMessageSystem::~LLMessageSystem()
1355 delete mLLSDMessageReader; 1355 delete mLLSDMessageReader;
1356 mLLSDMessageReader = NULL; 1356 mLLSDMessageReader = NULL;
1357 1357
1358 delete mLLSDMessageBuilder;
1359 mLLSDMessageBuilder = NULL;
1360
1358 delete mPollInfop; 1361 delete mPollInfop;
1359 mPollInfop = NULL; 1362 mPollInfop = NULL;
1360 1363
@@ -4164,11 +4167,13 @@ void LLMessageSystem::dumpPacketToLog()
4164 char line_buffer[256]; /* Flawfinder: ignore */ 4167 char line_buffer[256]; /* Flawfinder: ignore */
4165 S32 i; 4168 S32 i;
4166 S32 cur_line_pos = 0; 4169 S32 cur_line_pos = 0;
4167
4168 S32 cur_line = 0; 4170 S32 cur_line = 0;
4171
4169 for (i = 0; i < mTrueReceiveSize; i++) 4172 for (i = 0; i < mTrueReceiveSize; i++)
4170 { 4173 {
4171 snprintf(line_buffer + cur_line_pos*3, sizeof(line_buffer),"%02x ", mTrueReceiveBuffer[i]); /* Flawfinder: ignore */ 4174 S32 offset = cur_line_pos * 3;
4175 snprintf(line_buffer + offset, sizeof(line_buffer) - offset,
4176 "%02x ", mTrueReceiveBuffer[i]); /* Flawfinder: ignore */
4172 cur_line_pos++; 4177 cur_line_pos++;
4173 if (cur_line_pos >= 16) 4178 if (cur_line_pos >= 16)
4174 { 4179 {
@@ -4345,11 +4350,6 @@ std::string get_shared_secret()
4345 4350
4346typedef std::map<const char*, LLMessageBuilder*> BuilderMap; 4351typedef std::map<const char*, LLMessageBuilder*> BuilderMap;
4347 4352
4348static void setBuilder(BuilderMap& map, const char* name, LLMessageBuilder* builder)
4349{
4350 map[gMessageStringTable.getString(name)] = builder;
4351}
4352
4353void LLMessageSystem::newMessageFast(const char *name) 4353void LLMessageSystem::newMessageFast(const char *name)
4354{ 4354{
4355 if(LLMessageConfig::isMessageBuiltTemplate(name)) 4355 if(LLMessageConfig::isMessageBuiltTemplate(name))