From 251c8d411a19d686a06b514944972769a9fa8ec8 Mon Sep 17 00:00:00 2001 From: Teruaki Kawashima Date: Fri, 27 Aug 2010 13:16:20 +0000 Subject: 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 --- apps/playlist_catalog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps') 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