[libpng16] Fix typo

This commit is contained in:
Glenn Randers-Pehrson 2017-08-07 14:35:06 -05:00
parent 7b8b7115d9
commit c5f801c82b

View File

@ -374,7 +374,7 @@ BOOL pnm2png (FILE *pnm_file, FILE *png_file, FILE *alpha_file, BOOL interlace,
/* row_bytes is the width x number of channels x (bit-depth / 8) */ /* row_bytes is the width x number of channels x (bit-depth / 8) */
row_bytes = width * channels * ((bit_depth <= 8) ? 1 : 2); row_bytes = width * channels * ((bit_depth <= 8) ? 1 : 2);
if (!rowbytes || height > ((size_t)(-1))/row_bytes) /* too big */ { if (!row_bytes || height > ((size_t)(-1))/row_bytes) /* too big */ {
return FALSE; return FALSE;
} }
if ((png_pixels = (png_byte *) if ((png_pixels = (png_byte *)