diff options
author | Jacek Antonelli | 2008-08-15 23:45:04 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:04 -0500 |
commit | 117e22047c5752352342d64e3fb7ce00a4eb8113 (patch) | |
tree | e32de2cfba0dda8705ae528fcd1fbe23ba075685 /linden/indra/llmessage/llxfer_file.cpp | |
parent | Second Life viewer sources 1.18.0.6 (diff) | |
download | meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.zip meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.gz meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.bz2 meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.xz |
Second Life viewer sources 1.18.1.2
Diffstat (limited to 'linden/indra/llmessage/llxfer_file.cpp')
-rw-r--r-- | linden/indra/llmessage/llxfer_file.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/linden/indra/llmessage/llxfer_file.cpp b/linden/indra/llmessage/llxfer_file.cpp index 33db248..b36dd5a 100644 --- a/linden/indra/llmessage/llxfer_file.cpp +++ b/linden/indra/llmessage/llxfer_file.cpp | |||
@@ -289,7 +289,11 @@ S32 LLXfer_File::flush() | |||
289 | 289 | ||
290 | if (mFp) | 290 | if (mFp) |
291 | { | 291 | { |
292 | fwrite(mBuffer,1,mBufferLength,mFp); | 292 | if (fwrite(mBuffer,1,mBufferLength,mFp) != mBufferLength) |
293 | { | ||
294 | llwarns << "Short write" << llendl; | ||
295 | } | ||
296 | |||
293 | // llinfos << "******* wrote " << mBufferLength << " bytes of file xfer" << llendl; | 297 | // llinfos << "******* wrote " << mBufferLength << " bytes of file xfer" << llendl; |
294 | fclose(mFp); | 298 | fclose(mFp); |
295 | mFp = NULL; | 299 | mFp = NULL; |