Commit 47369283 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix heap corruption

parent f83fdcac
...@@ -1167,7 +1167,7 @@ static void InitPrograms( input_thread_t * p_input ) ...@@ -1167,7 +1167,7 @@ static void InitPrograms( input_thread_t * p_input )
prgm = strtok_r( NULL, ",", &buf ) ) prgm = strtok_r( NULL, ",", &buf ) )
{ {
vlc_value_t val = { .i_int = atoi( prgm ) }; 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 ) if( list.i_count > 0 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment