diff options
author | Magnus Holmgren <magnushol@gmail.com> | 2006-04-30 08:20:18 +0000 |
---|---|---|
committer | Magnus Holmgren <magnushol@gmail.com> | 2006-04-30 08:20:18 +0000 |
commit | 3bd4b0be39d124dcaa33e642ce1190f159c99a3e (patch) | |
tree | 1eed3c167a20def4bccc47bb14893dd23aa7f40e /apps | |
parent | b236dc63ffcc8ba0d29a4e925ab6cd00f8853ad6 (diff) | |
download | rockbox-3bd4b0be39d124dcaa33e642ce1190f159c99a3e.tar.gz rockbox-3bd4b0be39d124dcaa33e642ce1190f159c99a3e.zip |
Fix problem with loading bookmarks from the root folder (causing the simulator to crash).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9836 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/tree.c b/apps/tree.c index a1068c2da2..b19ffaadee 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -1233,12 +1233,12 @@ void bookmark_play(char *resume_file, int index, int offset, int seed, | |||
1233 | 1233 | ||
1234 | /* Check if the file is at the same spot in the directory, | 1234 | /* Check if the file is at the same spot in the directory, |
1235 | else search for it */ | 1235 | else search for it */ |
1236 | if ((strcmp(strrchr(playlist_peek(index) + 1,'/') + 1, | 1236 | if ((strcmp(strrchr(playlist_peek(index),'/') + 1, |
1237 | filename))) | 1237 | filename))) |
1238 | { | 1238 | { |
1239 | for ( i=0; i < playlist_amount(); i++ ) | 1239 | for ( i=0; i < playlist_amount(); i++ ) |
1240 | { | 1240 | { |
1241 | if ((strcmp(strrchr(playlist_peek(i) + 1,'/') + 1, | 1241 | if ((strcmp(strrchr(playlist_peek(i),'/') + 1, |
1242 | filename)) == 0) | 1242 | filename)) == 0) |
1243 | break; | 1243 | break; |
1244 | } | 1244 | } |