Dave Chapman found a problem in the id3v1 tag reading, and provided

this fix!


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@445 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2002-05-05 13:25:29 +00:00
parent 5a833679dc
commit 75e8cbbdcc

View file

@ -322,7 +322,7 @@ getid3v1len(int fd)
int offset; int offset;
/* Check if we find "TAG" 128 bytes from EOF */ /* Check if we find "TAG" 128 bytes from EOF */
if((lseek(fd, -128, SEEK_END) != 0) || if((lseek(fd, -128, SEEK_END) == -1) ||
(read(fd, buf, 3) != 3) || (read(fd, buf, 3) != 3) ||
(strncmp(buf, "TAG", 3) != 0)) (strncmp(buf, "TAG", 3) != 0))
offset = 0; offset = 0;