aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/lltemplatemessagereader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llmessage/lltemplatemessagereader.cpp')
-rw-r--r--linden/indra/llmessage/lltemplatemessagereader.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/linden/indra/llmessage/lltemplatemessagereader.cpp b/linden/indra/llmessage/lltemplatemessagereader.cpp
index 0d81383..f5da14b 100644
--- a/linden/indra/llmessage/lltemplatemessagereader.cpp
+++ b/linden/indra/llmessage/lltemplatemessagereader.cpp
@@ -171,9 +171,6 @@ S32 LLTemplateMessageReader::getNumberOfBlocks(const char *blockname)
171 171
172 if (iter == mCurrentRMessageData->mMemberBlocks.end()) 172 if (iter == mCurrentRMessageData->mMemberBlocks.end())
173 { 173 {
174// sprintf(errmsg, "Block %s not in message %s", bnamep, mCurrentRMessageData->mName);
175// llerrs << errmsg << llendl;
176// return -1;
177 return 0; 174 return 0;
178 } 175 }
179 176
@@ -433,6 +430,15 @@ inline void LLTemplateMessageReader::getString(const char *block, const char *va
433 s[buffer_size - 1] = '\0'; 430 s[buffer_size - 1] = '\0';
434} 431}
435 432
433inline void LLTemplateMessageReader::getString(const char *block, const char *var, std::string& outstr, S32 blocknum )
434{
435 char s[MTUBYTES];
436 s[0] = '\0';
437 getData(block, var, s, 0, blocknum, MTUBYTES);
438 s[MTUBYTES - 1] = '\0';
439 outstr = s;
440}
441
436//virtual 442//virtual
437S32 LLTemplateMessageReader::getMessageSize() const 443S32 LLTemplateMessageReader::getMessageSize() const
438{ 444{
@@ -568,7 +574,9 @@ BOOL LLTemplateMessageReader::decodeData(const U8* buffer, const LLHost& sender
568 // repeat number is a single byte 574 // repeat number is a single byte
569 if (decode_pos >= mReceiveSize) 575 if (decode_pos >= mReceiveSize)
570 { 576 {
571 logRanOffEndOfPacket(sender, decode_pos, 1); 577 // commented out - hetgrid says that missing variable blocks
578 // at end of message are legal
579 // logRanOffEndOfPacket(sender, decode_pos, 1);
572 580
573 // default to 0 repeats 581 // default to 0 repeats
574 repeat_number = 0; 582 repeat_number = 0;