summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-05-05 13:25:29 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-05-05 13:25:29 +0000
commit75e8cbbdcc3e25a73baf8febc08c5f3b1c716f44 (patch)
tree6acf0b495f122db043226e89f8630585ad0ce31d
parent5a833679dc9ea94776108665628ee2ef71a02358 (diff)
downloadrockbox-75e8cbbdcc3e25a73baf8febc08c5f3b1c716f44.zip
rockbox-75e8cbbdcc3e25a73baf8febc08c5f3b1c716f44.tar.gz
rockbox-75e8cbbdcc3e25a73baf8febc08c5f3b1c716f44.tar.bz2
rockbox-75e8cbbdcc3e25a73baf8febc08c5f3b1c716f44.tar.xz
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
-rw-r--r--firmware/id3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/id3.c b/firmware/id3.c
index 74f1d28..6e3c76b 100644
--- a/firmware/id3.c
+++ b/firmware/id3.c
@@ -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;