diff options
Diffstat (limited to 'kernel/kls_png')
-rw-r--r-- | kernel/kls_png/ksquirrel-libs-png/pngpread.c | 2 | ||||
-rw-r--r-- | kernel/kls_png/ksquirrel-libs-png/pngrutil.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/kernel/kls_png/ksquirrel-libs-png/pngpread.c b/kernel/kls_png/ksquirrel-libs-png/pngpread.c index 3dd0f06..f34553b 100644 --- a/kernel/kls_png/ksquirrel-libs-png/pngpread.c +++ b/kernel/kls_png/ksquirrel-libs-png/pngpread.c @@ -1670,7 +1670,7 @@ png_push_handle_unknown(png_structp png_ptr, png_infop info_ptr, png_uint_32 #endif png_strncpy((png_charp)png_ptr->unknown_chunk.name, (png_charp)png_ptr->chunk_name, - png_sizeof((png_charp)png_ptr->chunk_name)); + png_sizeof(png_ptr->unknown_chunk.name)); png_ptr->unknown_chunk.data = (png_bytep)png_malloc(png_ptr, length); png_ptr->unknown_chunk.size = (png_size_t)length; png_crc_read(png_ptr, (png_bytep)png_ptr->unknown_chunk.data, length); diff --git a/kernel/kls_png/ksquirrel-libs-png/pngrutil.c b/kernel/kls_png/ksquirrel-libs-png/pngrutil.c index 899cdc4..6552af3 100644 --- a/kernel/kls_png/ksquirrel-libs-png/pngrutil.c +++ b/kernel/kls_png/ksquirrel-libs-png/pngrutil.c @@ -2374,7 +2374,7 @@ png_handle_unknown(png_structp png_ptr, png_infop info_ptr, png_uint_32 length) #endif png_strncpy((png_charp)png_ptr->unknown_chunk.name, (png_charp)png_ptr->chunk_name, - png_sizeof((png_charp)png_ptr->chunk_name)); + png_sizeof(png_ptr->unknown_chunk.name)); png_ptr->unknown_chunk.data = (png_bytep)png_malloc(png_ptr, length); png_ptr->unknown_chunk.size = (png_size_t)length; png_crc_read(png_ptr, (png_bytep)png_ptr->unknown_chunk.data, length); |