From 8d47dc2f821b21f320188994987ceba0511864e0 Mon Sep 17 00:00:00 2001 From: Anshul Maheshwari Date: Sun, 20 Jul 2014 13:37:35 +0530 Subject: [PATCH] corrected size of expression --- src/dvb_subtitle_decoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dvb_subtitle_decoder.c b/src/dvb_subtitle_decoder.c index 060b654d..60f32b35 100644 --- a/src/dvb_subtitle_decoder.c +++ b/src/dvb_subtitle_decoder.c @@ -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)