[libpng10] Imported from libpng-1.0.23rc1.tar

This commit is contained in:
Glenn Randers-Pehrson
2006-12-18 14:02:59 -06:00
parent 1ff473f3fd
commit e696c7205a
57 changed files with 1871 additions and 1383 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)
{