From 47369283f9bed68db77e0f1ba1f11840ddf1bfb3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Mon, 19 Jul 2010 19:59:15 +0300 Subject: [PATCH] Fix heap corruption --- src/input/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) -- 2.39.5