summaryrefslogtreecommitdiffstats
path: root/apps/playlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/playlist.c')
-rw-r--r--apps/playlist.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 4506ec5f54..651a5afeea 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -544,8 +544,7 @@ static int add_directory_to_playlist(struct playlist_info* playlist,
/* use the tree browser dircache to load files */
global_settings.dirfilter = SHOW_ALL;
- strncpy(tc->currdir, dirname, sizeof(tc->currdir));
- num_files = ft_load(tc);
+ num_files = ft_load(tc, dirname);
files = (struct entry*) tc->dircache;
if(!num_files)
@@ -584,8 +583,7 @@ static int add_directory_to_playlist(struct playlist_info* playlist,
break;
/* we now need to reload our current directory */
- strncpy(tc->currdir, dirname, sizeof(tc->currdir));
- num_files = ft_load(tc);
+ num_files = ft_load(tc, dirname);
files = (struct entry*) tc->dircache;
if (!num_files)
{