summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chromium/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/chromium/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp b/chromium/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp
index bff97c205e1..e5e18952b19 100644
--- a/chromium/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp
+++ b/chromium/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp
@@ -234,7 +234,7 @@ void PNGImageDecoder::headerAvailable()
#endif
png_uint_32 profileLength = 0;
if (png_get_iCCP(png, info, &profileName, &compressionType, &profile, &profileLength)) {
- setColorProfileAndTransform(profile, profileLength, imageHasAlpha, false /* useSRGB */);
+ setColorProfileAndTransform(reinterpret_cast<const char*>(profile), profileLength, imageHasAlpha, false /* useSRGB */);
}
}
#endif // PNG_iCCP_SUPPORTED