Do not pass too much argument to sprintf
authorChristophe Mutricy <xtophe@videolan.org>
Fri, 2 Mar 2007 14:52:51 +0000 (14:52 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Fri, 2 Mar 2007 14:52:51 +0000 (14:52 +0000)
src/playlist/loadsave.c

index 210ce50..8097d09 100644 (file)
@@ -134,8 +134,7 @@ int playlist_MLDump( playlist_t *p_playlist )
         return VLC_EGENERIC;
     }
 
-    asprintf( &psz_uri, "%s" DIR_SEP "%s", psz_dirname,
-                        "ml.xsp",  psz_homedir );
+    asprintf( &psz_uri, "%s" DIR_SEP "%s", psz_dirname, "ml.xsp" );
     stats_TimerStart( p_playlist, "ML Dump", STATS_TIMER_ML_DUMP );
     playlist_Export( p_playlist, psz_uri, p_playlist->p_ml_category,
                      "export-xspf" );