summaryrefslogtreecommitdiff
path: root/indra/llimage
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2017-06-12 15:26:10 +0300
committerandreykproductengine <andreykproductengine@lindenlab.com>2017-06-12 15:26:10 +0300
commit3d8dc8cd6dd4ea59ff226f91b114a3298f8f096f (patch)
treeeff3eb03821ce6a18ea7577cb62033952ff6513a /indra/llimage
parent34cfd3714b8c8f14effd55001191b0519861e2b0 (diff)
Fixed line endings for llpngwrapper.cpp
Diffstat (limited to 'indra/llimage')
-rw-r--r--indra/llimage/llpngwrapper.cpp8
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);