1
0
Fork 0
forked from len0rd/rockbox

fix sub-string comparison

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14602 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Kukla 2007-09-04 08:23:12 +00:00
parent 95101c19f2
commit 3fbd2414af

View file

@ -952,7 +952,7 @@ static void setid3v2title(int fd, struct mp3entry *entry)
if(!memcmp( header, "COMM", 4 )) { if(!memcmp( header, "COMM", 4 )) {
int offset; int offset;
/* ignore comments with iTunes 7 soundcheck/gapless data */ /* ignore comments with iTunes 7 soundcheck/gapless data */
if(!strcmp(tag+4, "iTun")) if(!strncmp(tag+4, "iTun", 4))
break; break;
offset = 3 + unicode_len(*tag, tag + 4); offset = 3 + unicode_len(*tag, tag + 4);
if(bytesread > offset) { if(bytesread > offset) {