corrected size of expression

This commit is contained in:
Anshul Maheshwari 2014-07-20 13:37:35 +05:30
parent 00433467be
commit 8d47dc2f82

View File

@ -367,10 +367,10 @@ static int pre_process_bitmap(png_color **palette, png_byte **alpha, int size,
else
{
/* initialize colors with white */
memset(palette,0xff,sizeof(nb_color * sizeof(*lpalette)));
memset(palette,0xff,nb_color * sizeof(*lpalette));
/* initialize transparency as complete transparent */
memset(lalpha,0,sizeof(nb_color * sizeof(*lalpha)));
memset(lalpha,0,nb_color * sizeof(*lalpha));
}
if(bitmap)