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

Fix heap corruption

(cherry picked from commit 47369283)
parent 0fffe6a4
...@@ -1171,7 +1171,7 @@ static void InitPrograms( input_thread_t * p_input ) ...@@ -1171,7 +1171,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