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
This commit is contained in:
Hardeep Sidhu 2002-09-17 07:42:21 +00:00
parent 04adfe2703
commit c2c8d1cd1e

View File

@ -519,7 +519,7 @@ void set_current_file(char *path)
unsigned int i;
/* separate directory from filename */
name = strrchr(path,'/');
name = strrchr(path+1,'/');
if (name)
{
*name = 0;