summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2010-08-27 13:16:20 +0000
committerTeruaki Kawashima <teru@rockbox.org>2010-08-27 13:16:20 +0000
commit251c8d411a19d686a06b514944972769a9fa8ec8 (patch)
tree0bf11d0d801781b7504e066d8fc0a20ee403ab46 /apps
parentb16afb4356cb0bd2c7aafca1a9846d552ee12516 (diff)
Fix bug adding a playlist to another playlist doesn't finish if it has UTF-8 BOM introduced by r24718.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27906 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/playlist_catalog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/playlist_catalog.c b/apps/playlist_catalog.c
index 2fbffdaa3c..ef44e36ba7 100644
--- a/apps/playlist_catalog.c
+++ b/apps/playlist_catalog.c
@@ -381,9 +381,9 @@ static int add_to_playlist(const char* playlist, bool new_playlist,
if (f < 0)
goto exit;
+ i = lseek(f, 0, SEEK_CUR);
fs = filesize(f);
-
- for (i=0; i<fs;)
+ while (i < fs)
{
int n;