diff options
author | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
commit | 89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch) | |
tree | bcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/newview/llimpanel.cpp | |
parent | Second Life viewer sources 1.13.3.2 (diff) | |
download | meta-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/newview/llimpanel.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/linden/indra/newview/llimpanel.cpp b/linden/indra/newview/llimpanel.cpp index 317283c..088d601 100644 --- a/linden/indra/newview/llimpanel.cpp +++ b/linden/indra/newview/llimpanel.cpp | |||
@@ -263,7 +263,7 @@ BOOL LLFloaterIMPanel::addParticipants(const LLDynamicArray<LLUUID>& ids) | |||
263 | U8* pos = bucket; | 263 | U8* pos = bucket; |
264 | for(S32 i = 0; i < count; ++i) | 264 | for(S32 i = 0; i < count; ++i) |
265 | { | 265 | { |
266 | memcpy(pos, &(ids.get(i)), UUID_BYTES); | 266 | memcpy(pos, &(ids.get(i)), UUID_BYTES); /* Flawfinder: ignore */ |
267 | pos += UUID_BYTES; | 267 | pos += UUID_BYTES; |
268 | } | 268 | } |
269 | msg->addBinaryDataFast(_PREHASH_BinaryBucket, bucket, bucket_size); | 269 | msg->addBinaryDataFast(_PREHASH_BinaryBucket, bucket, bucket_size); |
@@ -611,7 +611,7 @@ void LLFloaterIMPanel::onInputEditorKeystroke(LLLineEditor* caller, void* userda | |||
611 | } | 611 | } |
612 | } | 612 | } |
613 | 613 | ||
614 | void LLFloaterIMPanel::close(bool app_quitting) | 614 | void LLFloaterIMPanel::onClose(bool app_quitting) |
615 | { | 615 | { |
616 | setTyping(FALSE); | 616 | setTyping(FALSE); |
617 | 617 | ||
@@ -685,8 +685,9 @@ void LLFloaterIMPanel::sendMsg() | |||
685 | gAgent.buildFullname(history_echo); | 685 | gAgent.buildFullname(history_echo); |
686 | 686 | ||
687 | // Look for IRC-style emotes here. | 687 | // Look for IRC-style emotes here. |
688 | char tmpstr[5]; | 688 | char tmpstr[5]; /* Flawfinder: ignore */ |
689 | strcpy(tmpstr,utf8_text.substr(0,4).c_str()); | 689 | strncpy(tmpstr,utf8_text.substr(0,4).c_str(), sizeof(tmpstr) -1); /* Flawfinder: ignore */ |
690 | tmpstr[sizeof(tmpstr) -1] = '\0'; | ||
690 | if (!strncmp(tmpstr, "/me ", 4) || !strncmp(tmpstr, "/me'", 4)) | 691 | if (!strncmp(tmpstr, "/me ", 4) || !strncmp(tmpstr, "/me'", 4)) |
691 | { | 692 | { |
692 | utf8_text.replace(0,3,""); | 693 | utf8_text.replace(0,3,""); |