Commit cdacb3aa authored by Rémi Duraffort's avatar Rémi Duraffort

vcd: fix sizeof mismatch (cid #1048981)

parent d1992eb5
...@@ -264,7 +264,7 @@ static int Control( access_t *p_access, int i_query, va_list args ) ...@@ -264,7 +264,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
*va_arg( args, int* ) = p_sys->i_titles; *va_arg( args, int* ) = p_sys->i_titles;
/* Duplicate title infos */ /* Duplicate title infos */
*ppp_title = malloc( sizeof(input_title_t **) * p_sys->i_titles ); *ppp_title = malloc( sizeof(input_title_t *) * p_sys->i_titles );
for( int i = 0; i < p_sys->i_titles; i++ ) for( int i = 0; i < p_sys->i_titles; i++ )
(*ppp_title)[i] = vlc_input_title_Duplicate( p_sys->title[i] ); (*ppp_title)[i] = vlc_input_title_Duplicate( p_sys->title[i] );
break; break;
......
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