fix incompatible function type
This commit is contained in:
parent
58878b522a
commit
a28add796c
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user