diff options
Diffstat (limited to 'png/pngrio.c')
| -rw-r--r-- | png/pngrio.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/png/pngrio.c b/png/pngrio.c index 794635810..b4a216161 100644 --- a/png/pngrio.c +++ b/png/pngrio.c @@ -1,7 +1,6 @@ - /* pngrio.c - functions for data input * - * Copyright (c) 2018 Cosmin Truta + * Copyright (c) 2018-2025 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. @@ -57,7 +56,7 @@ png_default_read_data(png_structp png_ptr, png_bytep data, size_t length) /* 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)); + check = fread(data, 1, length, png_voidcast(FILE *, png_ptr->io_ptr)); if (check != length) png_error(png_ptr, "Read Error"); |
