aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llinstantmessage.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:50 -0500
committerJacek Antonelli2008-08-15 23:44:50 -0500
commit89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch)
treebcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/llmessage/llinstantmessage.cpp
parentSecond Life viewer sources 1.13.3.2 (diff)
downloadmeta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz
Second Life viewer sources 1.14.0.0
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