From a4e95ee2e661ffca3678a9ee18f37d0292327c41 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Tue, 25 Jan 2005 08:55:21 +0000 Subject: Fixed another cause of 'stuck in subdir' bug. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5659 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/tree.c b/apps/tree.c index 65565f2d06..7c21dfecdf 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -498,8 +498,7 @@ static bool ask_resume(bool ask_once) /* load tracks from specified directory to resume play */ void resume_directory(const char *dir) { - strcpy(tc.currdir, dir); - if (ft_load(&tc, NULL) < 0) + if (ft_load(&tc, dir) < 0) return; lastdir[0] = 0; -- cgit v1.2.3