aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-third__party_WebKit_Source_platform_image-decoders_png_PNGImageDecoder.cpp
blob: 51fe19ef8bc172da5cfd47ded9e8eee117c36fa9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp.orig	2016-05-27 18:46:06.992656000 -0400
+++ third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp	2016-05-27 18:46:37.983471000 -0400
@@ -234,7 +234,7 @@
 #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