fix incompatible function type

This commit is contained in:
Garux 2020-11-05 14:24:45 +03:00
parent 58878b522a
commit a28add796c

View File

@ -42,7 +42,7 @@ void user_error_fn( png_structp png_ptr, png_const_charp error_msg ){
longjmp( png_jmpbuf(png_ptr), 0 ); longjmp( png_jmpbuf(png_ptr), 0 );
} }
void user_read_data( png_structp png_ptr, png_bytep data, png_uint_32 length ){ void user_read_data( png_structp png_ptr, png_bytep data, size_t length ){
png_bytep *p_p_fbuffer = (png_bytep*)png_get_io_ptr( png_ptr ); png_bytep *p_p_fbuffer = (png_bytep*)png_get_io_ptr( png_ptr );
memcpy( data, *p_p_fbuffer, length ); memcpy( data, *p_p_fbuffer, length );
*p_p_fbuffer += length; *p_p_fbuffer += length;