From 35abfe72d6078486cb1a73aac7a90cdc6702b380 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Tue, 15 Sep 2015 23:54:55 -0500 Subject: [PATCH] [libpng17] Fix debug statement in pngread.c --- pngread.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pngread.c b/pngread.c index 3d7b1247f..87c4d2042 100644 --- a/pngread.c +++ b/pngread.c @@ -174,7 +174,8 @@ png_read_chunk_header(png_structrp png_ptr) png_ptr->chunk_name = PNG_CHUNK_FROM_STRING(buf+4); png_debug2(0, "Reading %lx chunk, length = %lu", - (unsigned long)png_ptr->chunk_name, (unsigned long)length); + (unsigned long)png_ptr->chunk_name, + (unsigned long)png_ptr->chunk_length); /* Reset the crc and run it over the chunk name. */ png_reset_crc(png_ptr);