Skip to content

Commit

Permalink
Fix PNG tRNS length checks
Browse files Browse the repository at this point in the history
  • Loading branch information
zturtleman committed Jan 10, 2014
1 parent bc2efc4 commit fda03ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/renderercommon/tr_image_png.c
Expand Up @@ -2274,7 +2274,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);

Expand All @@ -2296,7 +2296,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);

Expand Down

0 comments on commit fda03ee

Please sign in to comment.