[libpng15] Use PNG_CSTRING_FROM_CHUNK macro with png_debug2() in pngwutil.c
This commit is contained in:
parent
4e68aa7e40
commit
ba55c0770b
@ -92,8 +92,10 @@ png_write_chunk_header(png_structp png_ptr, png_uint_32 chunk_name,
|
|||||||
{
|
{
|
||||||
png_byte buf[8];
|
png_byte buf[8];
|
||||||
|
|
||||||
png_debug2(0, "Writing %s chunk, length = %lu", chunk_name,
|
#ifdef PNG_DEBUG
|
||||||
(unsigned long)length);
|
PNG_CSTRING_FROM_CHUNK(buf, chunk_name);
|
||||||
|
png_debug2(0, "Writing %s chunk, length = %lu", buf, (unsigned long)length);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (png_ptr == NULL)
|
if (png_ptr == NULL)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user