From ee4eb9a91065b847bfba3b5279bcb80f3a1f8517 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Fri, 12 Feb 2010 20:30:45 -0600 Subject: [PATCH] [devel] Added several (png_bytep) typecasts in calls to png_inflate(). --- pngrutil.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pngrutil.c b/pngrutil.c index 1108de398..1d1e6d944 100644 --- a/pngrutil.c +++ b/pngrutil.c @@ -313,7 +313,7 @@ png_decompress_chunk(png_structp png_ptr, int comp_type, else if (comp_type == PNG_COMPRESSION_TYPE_BASE) { png_size_t expanded_size = png_inflate(png_ptr, - png_ptr->chunkdata + prefix_size, + (png_bytep)(png_ptr->chunkdata + prefix_size), chunklength - prefix_size, 0/*output*/, 0/*output size*/); @@ -345,9 +345,9 @@ png_decompress_chunk(png_structp png_ptr, int comp_type, { png_memcpy(text, png_ptr->chunkdata, prefix_size); new_size = png_inflate(png_ptr, - png_ptr->chunkdata + prefix_size, + (png_bytep)(png_ptr->chunkdata + prefix_size), chunklength - prefix_size, - text + prefix_size, expanded_size); + (png_bytep)(text + prefix_size), expanded_size); text[prefix_size + expanded_size] = 0; /* just in case */ if (new_size == expanded_size)