summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2014-01-10 12:34:48 -0600
committerTim Angus <tim@ngus.net>2014-06-17 17:43:38 +0100
commit39dd9ae340afb63eae708a3b2def0a6d541b2365 (patch)
tree9571ac87fc5625084893bad087dd578257d1ef1b
parent0605f9d03e791159af04c8f69a26864c187998af (diff)
Fix PNG tRNS length checks
-rw-r--r--src/renderercommon/tr_image_png.c4
1 files changed, 2 insertions, 2 deletions
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);