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
This commit is contained in:
Teruaki Kawashima 2010-08-27 13:16:20 +00:00
parent b16afb4356
commit 251c8d411a

View file

@ -381,9 +381,9 @@ static int add_to_playlist(const char* playlist, bool new_playlist,
if (f < 0) if (f < 0)
goto exit; goto exit;
i = lseek(f, 0, SEEK_CUR);
fs = filesize(f); fs = filesize(f);
while (i < fs)
for (i=0; i<fs;)
{ {
int n; int n;