aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra')
-rw-r--r--linden/indra/llmessage/llhttpclient.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/linden/indra/llmessage/llhttpclient.cpp b/linden/indra/llmessage/llhttpclient.cpp
index 6242bda..ef163fa 100644
--- a/linden/indra/llmessage/llhttpclient.cpp
+++ b/linden/indra/llmessage/llhttpclient.cpp
@@ -189,10 +189,9 @@ namespace
189 189
190 LLVFile vfile(gVFS, mUUID, mAssetType, LLVFile::READ); 190 LLVFile vfile(gVFS, mUUID, mAssetType, LLVFile::READ);
191 S32 fileSize = vfile.getSize(); 191 S32 fileSize = vfile.getSize();
192 U8* fileBuffer; 192 std::vector<U8> fileBuffer(fileSize);
193 fileBuffer = new U8 [fileSize]; 193 vfile.read(&fileBuffer[0], fileSize);
194 vfile.read(fileBuffer, fileSize); 194 ostream.write((char*)&fileBuffer[0], fileSize);
195 ostream.write((char*)fileBuffer, fileSize);
196 eos = true; 195 eos = true;
197 return STATUS_DONE; 196 return STATUS_DONE;
198 } 197 }