mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
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:
parent
5a833679dc
commit
75e8cbbdcc
1 changed files with 1 additions and 1 deletions
|
|
@ -322,7 +322,7 @@ getid3v1len(int fd)
|
|||
int offset;
|
||||
|
||||
/* 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) ||
|
||||
(strncmp(buf, "TAG", 3) != 0))
|
||||
offset = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue