cog: Use png_get_io_ptr() instead of accessing io_ptr directly
This commit is contained in:
parent
12fb307494
commit
e44da2ded0
@ -353,7 +353,7 @@ struct png_data_struct
|
||||
static void
|
||||
read_data (png_structp png_ptr, png_bytep data, png_size_t length)
|
||||
{
|
||||
struct png_data_struct *s = png_ptr->io_ptr;
|
||||
struct png_data_struct *s = png_get_io_ptr (png_ptr);
|
||||
|
||||
memcpy (data, s->data + s->offset, length);
|
||||
s->offset += length;
|
||||
|
Loading…
x
Reference in New Issue
Block a user