cog: Use png_get_io_ptr() instead of accessing io_ptr directly

This commit is contained in:
Руслан Ижбулатов 2010-03-17 14:23:41 +03:00 committed by Sebastian Dröge
parent 12fb307494
commit e44da2ded0

View file

@ -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;