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

Do not re-invent strcpy

parent d804de7d
......@@ -196,9 +196,8 @@ int playlist_MLDump( playlist_t *p_playlist )
return VLC_EGENERIC;
}
char psz_dirname[ strlen( psz_datadir )
+ sizeof( DIR_SEP "ml.xspf")];
sprintf( psz_dirname, "%s", psz_datadir );
char psz_dirname[ strlen( psz_datadir ) + sizeof( DIR_SEP "ml.xspf")];
strcpy( psz_dirname, psz_datadir );
if( config_CreateDir( (vlc_object_t *)p_playlist, psz_dirname ) )
{
return VLC_EGENERIC;
......
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