aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llinstantmessage.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llmessage/llinstantmessage.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/llmessage/llinstantmessage.cpp b/linden/indra/llmessage/llinstantmessage.cpp
index f1f4514..6f6e022 100644
--- a/linden/indra/llmessage/llinstantmessage.cpp
+++ b/linden/indra/llmessage/llinstantmessage.cpp
@@ -226,8 +226,8 @@ void pack_instant_message_block(
226 S32 bytes_left = MTUBYTES; 226 S32 bytes_left = MTUBYTES;
227 if(message) 227 if(message)
228 { 228 {
229 char buffer[MTUBYTES]; 229 char buffer[MTUBYTES]; /*Flawfinder: ignore*/
230 bytes_left -= snprintf(buffer, MTUBYTES, "%s", message); 230 bytes_left -= snprintf(buffer, MTUBYTES, "%s", message); /*Flawfinder: ignore*/
231 bytes_left = llmax(0, bytes_left); 231 bytes_left = llmax(0, bytes_left);
232 msg->addStringFast(_PREHASH_Message, buffer); 232 msg->addStringFast(_PREHASH_Message, buffer);
233 } 233 }
@@ -263,11 +263,11 @@ void LLIMInfo::unpackMessageBlock(LLMessageSystem* msg)
263 mIMType = (EInstantMessage) dialog; 263 mIMType = (EInstantMessage) dialog;
264 msg->getUUIDFast(_PREHASH_MessageBlock, _PREHASH_ID, mID); 264 msg->getUUIDFast(_PREHASH_MessageBlock, _PREHASH_ID, mID);
265 msg->getU32Fast(_PREHASH_MessageBlock, _PREHASH_Timestamp, mTimeStamp); 265 msg->getU32Fast(_PREHASH_MessageBlock, _PREHASH_Timestamp, mTimeStamp);
266 char name[DB_FULL_NAME_BUF_SIZE]; 266 char name[DB_FULL_NAME_BUF_SIZE]; /*Flawfinder: ignore*/
267 msg->getStringFast(_PREHASH_MessageBlock, _PREHASH_FromAgentName, DB_FULL_NAME_BUF_SIZE, name); 267 msg->getStringFast(_PREHASH_MessageBlock, _PREHASH_FromAgentName, DB_FULL_NAME_BUF_SIZE, name);
268 mName.assign(name); 268 mName.assign(name);
269 269
270 char message[DB_IM_MSG_BUF_SIZE]; 270 char message[DB_IM_MSG_BUF_SIZE]; /*Flawfinder: ignore*/
271 msg->getStringFast(_PREHASH_MessageBlock, _PREHASH_Message, DB_IM_MSG_BUF_SIZE, message); 271 msg->getStringFast(_PREHASH_MessageBlock, _PREHASH_Message, DB_IM_MSG_BUF_SIZE, message);
272 mMessage.assign(message); 272 mMessage.assign(message);
273 273