From c5f801c82b94a5c2654f8ab1d55b4324ba1069e7 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Mon, 7 Aug 2017 14:35:06 -0500 Subject: [PATCH] [libpng16] Fix typo --- contrib/pngminus/pnm2png.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/pngminus/pnm2png.c b/contrib/pngminus/pnm2png.c index 9442e4dbf..ebfcad17e 100644 --- a/contrib/pngminus/pnm2png.c +++ b/contrib/pngminus/pnm2png.c @@ -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 = 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; } if ((png_pixels = (png_byte *)