Commit 89561739 authored by Rafaël Carré's avatar Rafaël Carré

Do not use sprintf without a format

parent 308aaf6c
......@@ -659,7 +659,8 @@ char *__str_format_meta( vlc_object_t *p_object, const char *string )
int b_empty_if_na = 0;
char buf[10];
int i_size = strlen( string ) + 1; /* +1 to store '\0' */
char *dst = malloc( i_size );
char *dst = strdup( string );
if( !dst ) return NULL;
int d = 0;
playlist_t *p_playlist = pl_Yield( p_object );
......@@ -672,8 +673,6 @@ char *__str_format_meta( vlc_object_t *p_object, const char *string )
p_item = input_GetItem(p_input);
}
sprintf( dst, string );
while( *s )
{
if( b_is_format )
......
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