summaryrefslogtreecommitdiff
path: root/pngrio.c
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2019-06-10 15:47:49 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-06-10 15:47:49 -0700
commitdf3dc85d2ff9d18f15ff7a217a1ed52a3eb7b6bf (patch)
tree478f3db238be7e08885ac80ac8ef1be9935441bb /pngrio.c
parent4813fb533a80d139fb8139369cd6c25947d1017d (diff)
parent54ca51b2ee6da088d5eb1c7ef6430b1c83019977 (diff)
Merge "Merge tag 'v1.6.37' into HEAD" am: 7794b22253 am: aa0ce810a6 am: 490afb6c02
am: 54ca51b2ee Change-Id: Ie28ab673ec855738e26ca3ba06a061856ca07045
Diffstat (limited to 'pngrio.c')
-rw-r--r--pngrio.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/pngrio.c b/pngrio.c
index 7e26e855c..794635810 100644
--- a/pngrio.c
+++ b/pngrio.c
@@ -1,10 +1,10 @@
/* pngrio.c - functions for data input
*
- * Last changed in libpng 1.6.24 [August 4, 2016]
- * Copyright (c) 1998-2002,2004,2006-2016 Glenn Randers-Pehrson
- * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
- * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
+ * Copyright (c) 2018 Cosmin Truta
+ * Copyright (c) 1998-2002,2004,2006-2016,2018 Glenn Randers-Pehrson
+ * Copyright (c) 1996-1997 Andreas Dilger
+ * Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.
*
* This code is released under the libpng license.
* For conditions of distribution and use, see the disclaimer
@@ -29,7 +29,7 @@
* to read more than 64K on a 16-bit machine.
*/
void /* PRIVATE */
-png_read_data(png_structrp png_ptr, png_bytep data, png_size_t length)
+png_read_data(png_structrp png_ptr, png_bytep data, size_t length)
{
png_debug1(4, "reading %d bytes", (int)length);
@@ -47,14 +47,14 @@ png_read_data(png_structrp png_ptr, png_bytep data, png_size_t length)
* than changing the library.
*/
void PNGCBAPI
-png_default_read_data(png_structp png_ptr, png_bytep data, png_size_t length)
+png_default_read_data(png_structp png_ptr, png_bytep data, size_t length)
{
- png_size_t check;
+ size_t check;
if (png_ptr == NULL)
return;
- /* fread() returns 0 on error, so it is OK to store this in a png_size_t
+ /* fread() returns 0 on error, so it is OK to store this in a size_t
* instead of an int, which is what fread() actually returns.
*/
check = fread(data, 1, length, png_voidcast(png_FILE_p, png_ptr->io_ptr));