diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llmessage/llsdmessagesystem.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linden/indra/llmessage/llsdmessagesystem.cpp b/linden/indra/llmessage/llsdmessagesystem.cpp index 7d508f0..66382ea 100644 --- a/linden/indra/llmessage/llsdmessagesystem.cpp +++ b/linden/indra/llmessage/llsdmessagesystem.cpp | |||
@@ -25,6 +25,7 @@ | |||
25 | * COMPLETENESS OR PERFORMANCE. | 25 | * COMPLETENESS OR PERFORMANCE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | #include "linden_common.h" | ||
28 | #include "llsdmessagesystem.h" | 29 | #include "llsdmessagesystem.h" |
29 | 30 | ||
30 | #include "llhttpnode.h" | 31 | #include "llhttpnode.h" |
@@ -98,7 +99,7 @@ void LLSDMessageSystem::getStringFast(const char *block, const char *var, S32 bu | |||
98 | std::string data = getLLSD(mInput, block, var, blocknum).asString(); | 99 | std::string data = getLLSD(mInput, block, var, blocknum).asString(); |
99 | S32 length = data.length(); | 100 | S32 length = data.length(); |
100 | memset(buffer, 0, buffer_size); | 101 | memset(buffer, 0, buffer_size); |
101 | strncpy(buffer, data.c_str(), llmin(length, buffer_size)); | 102 | strncpy(buffer, data.c_str(), llmin(length, buffer_size)); /* Flawfinder: ignore */ |
102 | } | 103 | } |
103 | 104 | ||
104 | //virtual | 105 | //virtual |