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.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/linden/indra/llmessage/llxfer_mem.cpp b/linden/indra/llmessage/llxfer_mem.cpp
index 614f027..0b8c5b1 100644
--- a/linden/indra/llmessage/llxfer_mem.cpp
+++ b/linden/indra/llmessage/llxfer_mem.cpp
@@ -48,23 +48,23 @@ LLXfer_Mem::LLXfer_Mem ()
48 48
49LLXfer_Mem::~LLXfer_Mem () 49LLXfer_Mem::~LLXfer_Mem ()
50{ 50{
51 free(); 51 cleanup();
52} 52}
53 53
54/////////////////////////////////////////////////////////// 54///////////////////////////////////////////////////////////
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}
62 62
63/////////////////////////////////////////////////////////// 63///////////////////////////////////////////////////////////
64 64
65void LLXfer_Mem::free () 65void LLXfer_Mem::cleanup ()
66{ 66{
67 LLXfer::free(); 67 LLXfer::cleanup();
68} 68}
69 69
70/////////////////////////////////////////////////////////// 70///////////////////////////////////////////////////////////
@@ -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