aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llxfer_mem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llmessage/llxfer_mem.cpp')
-rw-r--r--linden/indra/llmessage/llxfer_mem.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/linden/indra/llmessage/llxfer_mem.cpp b/linden/indra/llmessage/llxfer_mem.cpp
index 614f027..3404520 100644
--- a/linden/indra/llmessage/llxfer_mem.cpp
+++ b/linden/indra/llmessage/llxfer_mem.cpp
@@ -55,7 +55,7 @@ LLXfer_Mem::~LLXfer_Mem ()
55 55
56void LLXfer_Mem::init () 56void LLXfer_Mem::init ()
57{ 57{
58 mRemoteFilename[0] = '\0'; 58 mRemoteFilename.clear();
59 mRemotePath = LL_PATH_NONE; 59 mRemotePath = LL_PATH_NONE;
60 mDeleteRemoteOnCompletion = FALSE; 60 mDeleteRemoteOnCompletion = FALSE;
61} 61}
@@ -120,7 +120,7 @@ S32 LLXfer_Mem::startSend (U64 xfer_id, const LLHost &remote_host)
120 mID = xfer_id; 120 mID = xfer_id;
121 mPacketNum = -1; 121 mPacketNum = -1;
122 122
123// cout << "Sending file: " << getName() << endl; 123// cout << "Sending file: " << getFileName() << endl;
124 124
125 mStatus = e_LL_XFER_PENDING; 125 mStatus = e_LL_XFER_PENDING;
126 126
@@ -135,7 +135,7 @@ S32 LLXfer_Mem::processEOF()
135 135
136 mStatus = e_LL_XFER_COMPLETE; 136 mStatus = e_LL_XFER_COMPLETE;
137 137
138 llinfos << "xfer complete: " << getName() << llendl; 138 llinfos << "xfer complete: " << getFileName() << llendl;
139 139
140 if (mCallback) 140 if (mCallback)
141 { 141 {
@@ -165,8 +165,7 @@ S32 LLXfer_Mem::initializeRequest(U64 xfer_id,
165 mCallbackDataHandle = user_data; 165 mCallbackDataHandle = user_data;
166 mCallbackResult = LL_ERR_NOERR; 166 mCallbackResult = LL_ERR_NOERR;
167 167
168 strncpy(mRemoteFilename, remote_filename.c_str(), LL_MAX_PATH-1); 168 mRemoteFilename = remote_filename;
169 mRemoteFilename[LL_MAX_PATH-1] = '\0'; // stupid strncpy.
170 mRemotePath = remote_path; 169 mRemotePath = remote_path;
171 mDeleteRemoteOnCompletion = delete_remote_on_completion; 170 mDeleteRemoteOnCompletion = delete_remote_on_completion;
172 171