From 75e8cbbdcc3e25a73baf8febc08c5f3b1c716f44 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 5 May 2002 13:25:29 +0000 Subject: 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 --- firmware/id3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) 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; -- cgit v1.2.3