diff options
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 1998-02-07 10:20:57 -0600 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2009-04-06 16:04:13 -0500 |
commit | 0f881d62b37b416cb2020ae865aed4d11a5ec19d (patch) | |
tree | 332e51e864560f3c7d521f37ed27bd0b8188b45d /pngrio.c | |
parent | b212002101f7c048d4ad2f4288870bdc672597f0 (diff) | |
download | libpng-0f881d62b37b416cb2020ae865aed4d11a5ec19d.tar.gz |
Imported from libpng-0.99c.tarv0.99c
Diffstat (limited to 'pngrio.c')
-rw-r--r-- | pngrio.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,12 +1,12 @@ /* pngrio.c - functions for data input * - * libpng 0.99a + * libpng 0.99c * For conditions of distribution and use, see copyright notice in png.h * Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc. * Copyright (c) 1996, 1997 Andreas Dilger * Copyright (c) 1998, Glenn Randers-Pehrson - * January 31, 1998 + * February 7, 1998 * * This file provides a location for all input. Users which need * special handling are expected to write a function which has the same @@ -99,7 +99,7 @@ png_default_read_data(png_structp png_ptr, png_bytep data, png_size_t length) } while (remaining != 0); } - if (check != length) + if ((png_uint_32)check != (png_uint_32)length) { png_error(png_ptr, "read Error"); } |