Skip to content

Commit

Permalink
Fix typo in change_clipping (17 should be 16)
Browse files Browse the repository at this point in the history
  • Loading branch information
glennrp committed Jul 21, 2017
1 parent d29a292 commit 1fdc09d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coders/png.c
Expand Up @@ -5682,7 +5682,7 @@ static Image *ReadOneMNGImage(MngInfo* mng_info, const ImageInfo *image_info,
" Framing_timeout=%.20g",(double) frame_timeout);
}

if (change_clipping && (p-chunk) < (ssize_t) (length-17))
if (change_clipping && (p-chunk) < (ssize_t) (length-16))
{
fb=mng_read_box(previous_fb,(char) p[0],&p[1]);
p+=16;
Expand Down

0 comments on commit 1fdc09d

Please sign in to comment.