mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng16] Fixed minor memset/sizeof errors in pngvalid.c.
This commit is contained in:
committed by
Glenn Randers-Pehrson
parent
ec6d6fa51b
commit
12924f33bd
@@ -4091,7 +4091,7 @@ read_palette(store_palette palette, int *npalette, png_structp pp, png_infop pi)
|
||||
png_error(pp, "validate: invalid PLTE result");
|
||||
/* But there is no palette, so record this: */
|
||||
*npalette = 0;
|
||||
memset(palette, 113, sizeof palette);
|
||||
memset(palette, 113, sizeof (store_palette));
|
||||
}
|
||||
|
||||
trans_alpha = 0;
|
||||
@@ -5277,7 +5277,7 @@ static void
|
||||
transform_display_init(transform_display *dp, png_modifier *pm, png_uint_32 id,
|
||||
PNG_CONST image_transform *transform_list)
|
||||
{
|
||||
memset(dp, 0, sizeof dp);
|
||||
memset(dp, 0, sizeof *dp);
|
||||
|
||||
/* Standard fields */
|
||||
standard_display_init(&dp->this, &pm->this, id, 0/*do_interlace*/,
|
||||
|
||||
Reference in New Issue
Block a user