aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llxfer_mem.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llmessage/llxfer_mem.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/linden/indra/llmessage/llxfer_mem.cpp b/linden/indra/llmessage/llxfer_mem.cpp
index e9b4224..0f055c8 100644
--- a/linden/indra/llmessage/llxfer_mem.cpp
+++ b/linden/indra/llmessage/llxfer_mem.cpp
@@ -162,7 +162,8 @@ S32 LLXfer_Mem::initializeRequest(U64 xfer_id,
162 mCallbackDataHandle = user_data; 162 mCallbackDataHandle = user_data;
163 mCallbackResult = LL_ERR_NOERR; 163 mCallbackResult = LL_ERR_NOERR;
164 164
165 strncpy(mRemoteFilename, remote_filename.c_str(), LL_MAX_PATH); /* Flawfinder : ignore */ 165 strncpy(mRemoteFilename, remote_filename.c_str(), LL_MAX_PATH-1);
166 mRemoteFilename[LL_MAX_PATH-1] = '\0'; // stupid strncpy.
166 mRemotePath = remote_path; 167 mRemotePath = remote_path;
167 mDeleteRemoteOnCompletion = delete_remote_on_completion; 168 mDeleteRemoteOnCompletion = delete_remote_on_completion;
168 169