summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
authorHardeep Sidhu <dyp@pobox.com>2002-09-17 07:42:21 +0000
committerHardeep Sidhu <dyp@pobox.com>2002-09-17 07:42:21 +0000
commitc2c8d1cd1e910ade611e595372ae0a8cd800c8c8 (patch)
tree72d8e070c034b935e7c3eb998b3bd43b6e91333f /apps/tree.c
parent04adfe270356d7460dfd1c442c6e7caa3c4cd7dc (diff)
downloadrockbox-c2c8d1cd1e910ade611e595372ae0a8cd800c8c8.tar.gz
rockbox-c2c8d1cd1e910ade611e595372ae0a8cd800c8c8.zip
Fixed follow playlist bug when current track was in root directory.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2315 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 21aa78c74d..b86f606cc6 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -519,7 +519,7 @@ void set_current_file(char *path)
519 unsigned int i; 519 unsigned int i;
520 520
521 /* separate directory from filename */ 521 /* separate directory from filename */
522 name = strrchr(path,'/'); 522 name = strrchr(path+1,'/');
523 if (name) 523 if (name)
524 { 524 {
525 *name = 0; 525 *name = 0;