[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

@@ -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);
}