[libpng16] Fixed a compiler warning under Cygwin (Windows-7, 32-bit system)

This commit is contained in:
John Bowler 2012-03-10 21:05:19 -06:00 committed by Glenn Randers-Pehrson
parent 9ff37ea94f
commit 845ee6af72
3 changed files with 6 additions and 4 deletions

View File

@ -301,7 +301,8 @@ Version 1.6.0beta17 [March 10, 2012]
Version 1.6.0beta18 [March 11, 2012]
Issue a png_benign_error() instead of png_warning() about bad palette index.
In pngtest, treat benign errors as errors if "-strict" is present.
Fix an off-by-one error in the palette index checking function.
Fixed an off-by-one error in the palette index checking function.
Fixed a compiler warning under Cygwin (Windows-7, 32-bit system)
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit

View File

@ -4052,7 +4052,8 @@ Version 1.6.0beta17 [March 10, 2012]
Version 1.6.0beta18 [March 11, 2012]
Issue a png_benign_error() instead of png_warning() about bad palette index.
In pngtest, treat benign errors as errors if "-strict" is present.
Fix an off-by-one error in the palette index checking function.
Fixed an off-by-one error in the palette index checking function.
Fixed a compiler warning under Cygwin (Windows-7, 32-bit system)
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit

View File

@ -4653,8 +4653,8 @@ standard_check_text(png_const_structp pp, png_const_textp tp,
if (tp->text_length != strlen(text))
{
char buf[64];
sprintf(buf, "text length changed[%lu->%lu], ", strlen(text),
tp->text_length);
sprintf(buf, "text length changed[%lu->%lu], ",
(unsigned long)strlen(text), (unsigned long)tp->text_length);
pos = safecat(msg, sizeof msg, pos, buf);
}