summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;