summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-06-15 08:46:13 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-06-15 08:46:13 +0000
commit5058f7de051cd0c388a6ea202ce253be428719aa (patch)
tree5e181623b031a8a65971703f513bccf489b8d5c1
parent5b9eb29d123baebd5927b50d7a2675d540530902 (diff)
downloadrockbox-5058f7de051cd0c388a6ea202ce253be428719aa.tar.gz
rockbox-5058f7de051cd0c388a6ea202ce253be428719aa.tar.bz2
rockbox-5058f7de051cd0c388a6ea202ce253be428719aa.zip
ID3 parser bug fix by Ray Lambert
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6716 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--docs/CREDITS1
-rw-r--r--firmware/id3.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/docs/CREDITS b/docs/CREDITS
index 226013ce6e..25841204b9 100644
--- a/docs/CREDITS
+++ b/docs/CREDITS
@@ -117,3 +117,4 @@ David Bryant
Martin Arver
Alexander Spyridakis
Pedro Baltazar Vasconcelos
+Ray Lambert
diff --git a/firmware/id3.c b/firmware/id3.c
index d8f7c0db7b..becb6781cc 100644
--- a/firmware/id3.c
+++ b/firmware/id3.c
@@ -673,8 +673,8 @@ static void setid3v2title(int fd, struct mp3entry *entry)
unicode_munge( ptag, &bytesread );
tag = *ptag;
- tag[bytesread + 1] = 0;
- bufferpos += bytesread + 2;
+ tag[bytesread++] = 0;
+ bufferpos += bytesread;
if( tr->ppFunc )
bufferpos = tr->ppFunc(entry, tag, bufferpos);
break;