Commit 75e6888e authored by ivoire's avatar ivoire
Browse files

FIx sizeof mismatch (cid #1049611)

parent bd6e2da8
......@@ -1492,7 +1492,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
int *pi_int = va_arg( args, int * );
*pi_int = p_sys->i_attachment;
*ppp_attach = calloc( p_sys->i_attachment, sizeof(*ppp_attach));
*ppp_attach = calloc( p_sys->i_attachment, sizeof(**ppp_attach));
for( unsigned i = 0; i < p_sys->i_attachment && *ppp_attach; i++ )
(*ppp_attach)[i] = vlc_input_attachment_Duplicate( p_sys->attachment[i] );
return VLC_SUCCESS;
......
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