From: RĂ©mi Denis-Courmont Date: Mon, 19 Jul 2010 16:59:15 +0000 (+0300) Subject: Fix heap corruption X-Git-Tag: 1.2.0-pre1~5756 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=47369283f9bed68db77e0f1ba1f11840ddf1bfb3;p=vlc Fix heap corruption --- diff --git a/src/input/input.c b/src/input/input.c index bf1dbccf45..99725675e4 100644 --- a/src/input/input.c +++ b/src/input/input.c @@ -1167,7 +1167,7 @@ static void InitPrograms( input_thread_t * p_input ) prgm = strtok_r( NULL, ",", &buf ) ) { vlc_value_t val = { .i_int = atoi( prgm ) }; - TAB_APPEND( list.i_count, list.p_values, val ); + INSERT_ELEM( list.p_values, list.i_count, list.i_count, val ); } if( list.i_count > 0 )