From 39dd9ae340afb63eae708a3b2def0a6d541b2365 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Fri, 10 Jan 2014 12:34:48 -0600 Subject: Fix PNG tRNS length checks --- src/renderercommon/tr_image_png.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/renderercommon') diff --git a/src/renderercommon/tr_image_png.c b/src/renderercommon/tr_image_png.c index 87915a54..7b33c9d3 100644 --- a/src/renderercommon/tr_image_png.c +++ b/src/renderercommon/tr_image_png.c @@ -2275,7 +2275,7 @@ void R_LoadPNG(const char *name, byte **pic, int *width, int *height) { case PNG_ColourType_Grey : { - if(!ChunkHeaderLength == 2) + if(ChunkHeaderLength != 2) { CloseBufferedFile(ThePNG); @@ -2297,7 +2297,7 @@ void R_LoadPNG(const char *name, byte **pic, int *width, int *height) case PNG_ColourType_True : { - if(!ChunkHeaderLength == 6) + if(ChunkHeaderLength != 6) { CloseBufferedFile(ThePNG); -- cgit