Imported from libpng-1.2.15beta3.tar

This commit is contained in:
Glenn Randers-Pehrson
2006-12-04 20:04:02 -06:00
parent 271a2931b6
commit 948ee23a2a
45 changed files with 113 additions and 104 deletions

View File

@@ -757,8 +757,11 @@ png_write_iCCP(png_structp png_ptr, png_charp name, int compression_type,
profile_len = 0;
if (profile_len > 3)
embedded_profile_len = ((*(profile ))<<24) | ((*(profile+1))<<16) |
((*(profile+2))<< 8) | ((*(profile+3)) );
embedded_profile_len =
((*( (png_bytep)profile ))<<24) |
((*( (png_bytep)profile+1))<<16) |
((*( (png_bytep)profile+2))<< 8) |
((*( (png_bytep)profile+3)) );
if (profile_len < embedded_profile_len)
{