diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-05-05 13:25:29 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-05-05 13:25:29 +0000 |
commit | 75e8cbbdcc3e25a73baf8febc08c5f3b1c716f44 (patch) | |
tree | 6acf0b495f122db043226e89f8630585ad0ce31d /firmware/id3.c | |
parent | 5a833679dc9ea94776108665628ee2ef71a02358 (diff) | |
download | rockbox-75e8cbbdcc3e25a73baf8febc08c5f3b1c716f44.tar.gz rockbox-75e8cbbdcc3e25a73baf8febc08c5f3b1c716f44.zip |
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
Diffstat (limited to 'firmware/id3.c')
-rw-r--r-- | firmware/id3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/id3.c b/firmware/id3.c index 74f1d28c5f..6e3c76b707 100644 --- a/firmware/id3.c +++ b/firmware/id3.c | |||
@@ -322,7 +322,7 @@ getid3v1len(int fd) | |||
322 | int offset; | 322 | int offset; |
323 | 323 | ||
324 | /* Check if we find "TAG" 128 bytes from EOF */ | 324 | /* Check if we find "TAG" 128 bytes from EOF */ |
325 | if((lseek(fd, -128, SEEK_END) != 0) || | 325 | if((lseek(fd, -128, SEEK_END) == -1) || |
326 | (read(fd, buf, 3) != 3) || | 326 | (read(fd, buf, 3) != 3) || |
327 | (strncmp(buf, "TAG", 3) != 0)) | 327 | (strncmp(buf, "TAG", 3) != 0)) |
328 | offset = 0; | 328 | offset = 0; |