[libpng16] Use png_debug2() instead of printf() for bug reporting.

This commit is contained in:
Glenn Randers-Pehrson
2017-08-03 16:29:58 -05:00
parent 9d4215e6c0
commit 4ac8b5e0d6
2 changed files with 4 additions and 4 deletions

View File

@@ -213,8 +213,8 @@ png_read_chunk_header(png_structrp png_ptr)
if (length > limit)
{
printf(" length = %lu, limit = %lu\n",
(unsigned long)length,(unsigned long)limit);
png_debug2(1," png_ptr->push_length = %lu, limit = %lu",
(unsigned long)png_ptr->push_length,(unsigned long)limit);
png_chunk_error(png_ptr, "chunk data is too large");
}