Commit fd453018 authored by Laurent Aimar's avatar Laurent Aimar

Avoid sprintf.

It eases security review.
parent 3c4599a8
......@@ -339,7 +339,7 @@ static int Open( vlc_object_t * p_this )
if( ( p_sys->meta = vlc_meta_New() ) )
{
char buffer[200];
sprintf( buffer, "%s%s%s%s",
snprintf( buffer, sizeof(buffer), "%s%s%s%s",
p_avih->i_flags&AVIF_HASINDEX?" HAS_INDEX":"",
p_avih->i_flags&AVIF_MUSTUSEINDEX?" MUST_USE_INDEX":"",
p_avih->i_flags&AVIF_ISINTERLEAVED?" IS_INTERLEAVED":"",
......
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