diff options
author | andreykproductengine <andreykproductengine@lindenlab.com> | 2017-06-12 15:26:10 +0300 |
---|---|---|
committer | andreykproductengine <andreykproductengine@lindenlab.com> | 2017-06-12 15:26:10 +0300 |
commit | 3d8dc8cd6dd4ea59ff226f91b114a3298f8f096f (patch) | |
tree | eff3eb03821ce6a18ea7577cb62033952ff6513a /indra/llimage | |
parent | 34cfd3714b8c8f14effd55001191b0519861e2b0 (diff) |
Fixed line endings for llpngwrapper.cpp
Diffstat (limited to 'indra/llimage')
-rw-r--r-- | indra/llimage/llpngwrapper.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/llimage/llpngwrapper.cpp b/indra/llimage/llpngwrapper.cpp index b2fa0ed315..eb70b78a36 100644 --- a/indra/llimage/llpngwrapper.cpp +++ b/indra/llimage/llpngwrapper.cpp @@ -112,10 +112,10 @@ void LLPngWrapper::readDataCallback(png_structp png_ptr, png_bytep dest, png_siz void LLPngWrapper::writeDataCallback(png_structp png_ptr, png_bytep src, png_size_t length) { PngDataInfo *dataInfo = (PngDataInfo *) png_get_io_ptr(png_ptr); - if (dataInfo->mOffset + length > dataInfo->mDataSize)
- {
- png_error(png_ptr, "Data write error. Requested data size exceeds available data size.");
- return;
+ if (dataInfo->mOffset + length > dataInfo->mDataSize) + { + png_error(png_ptr, "Data write error. Requested data size exceeds available data size."); + return; } U8 *dest = &dataInfo->mData[dataInfo->mOffset]; memcpy(dest, src, length); |