[libpng15] Use PNG_CSTRING_FROM_CHUNK macro with png_debug2() in pngwutil.c

This commit is contained in:
Glenn Randers-Pehrson 2011-10-11 21:21:37 -05:00
parent 4e68aa7e40
commit ba55c0770b

View File

@ -92,8 +92,10 @@ png_write_chunk_header(png_structp png_ptr, png_uint_32 chunk_name,
{
png_byte buf[8];
png_debug2(0, "Writing %s chunk, length = %lu", chunk_name,
(unsigned long)length);
#ifdef PNG_DEBUG
PNG_CSTRING_FROM_CHUNK(buf, chunk_name);
png_debug2(0, "Writing %s chunk, length = %lu", buf, (unsigned long)length);
#endif
if (png_ptr == NULL)
return;