diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llmessage/lltransfersourcefile.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llmessage/lltransfersourcefile.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/indra/llmessage/lltransfersourcefile.cpp b/linden/indra/llmessage/lltransfersourcefile.cpp index 4b60cf3..a372f66 100644 --- a/linden/indra/llmessage/lltransfersourcefile.cpp +++ b/linden/indra/llmessage/lltransfersourcefile.cpp | |||
@@ -67,7 +67,7 @@ void LLTransferSourceFile::initTransfer() | |||
67 | return; | 67 | return; |
68 | } | 68 | } |
69 | // Look for the file. | 69 | // Look for the file. |
70 | mFP = LLFile::fopen(mParams.getFilename().c_str(), "rb"); /* Flawfinder: ignore */ | 70 | mFP = LLFile::fopen(mParams.getFilename(), "rb"); /* Flawfinder: ignore */ |
71 | if (!mFP) | 71 | if (!mFP) |
72 | { | 72 | { |
73 | sendTransferStatus(LLTS_ERROR); | 73 | sendTransferStatus(LLTS_ERROR); |
@@ -134,9 +134,9 @@ void LLTransferSourceFile::completionCallback(const LLTSCode status) | |||
134 | 134 | ||
135 | } | 135 | } |
136 | // Delete the file iff the filename begins with "TEMP" | 136 | // Delete the file iff the filename begins with "TEMP" |
137 | if (mParams.getDeleteOnCompletion() && memcmp(mParams.getFilename().c_str(), "TEMP", 4) == 0) | 137 | if (mParams.getDeleteOnCompletion() && mParams.getFilename().substr(0, 4) == "TEMP") |
138 | { | 138 | { |
139 | LLFile::remove(mParams.getFilename().c_str()); | 139 | LLFile::remove(mParams.getFilename()); |
140 | } | 140 | } |
141 | } | 141 | } |
142 | 142 | ||
@@ -162,7 +162,7 @@ LLTransferSourceParamsFile::LLTransferSourceParamsFile() : | |||
162 | 162 | ||
163 | void LLTransferSourceParamsFile::packParams(LLDataPacker &dp) const | 163 | void LLTransferSourceParamsFile::packParams(LLDataPacker &dp) const |
164 | { | 164 | { |
165 | dp.packString(mFilename.c_str(), "Filename"); | 165 | dp.packString(mFilename, "Filename"); |
166 | dp.packU8((U8)mDeleteOnCompletion, "Delete"); | 166 | dp.packU8((U8)mDeleteOnCompletion, "Delete"); |
167 | } | 167 | } |
168 | 168 | ||