summaryrefslogtreecommitdiffstats
path: root/src/fiasco.c
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2015-06-24 18:30:07 +0200
committerPali Rohár <pali.rohar@gmail.com>2015-06-24 18:30:07 +0200
commit3f406cc9addbe7155bc05518715bdd292154fbb6 (patch)
treec5dbf2bd5999e2f6f69cd80315dba974d0fb2768 /src/fiasco.c
parent94a2fe0c17cac00c679cd08f9d8c3f6e78fa09a4 (diff)
download0xFFFF-3f406cc9addbe7155bc05518715bdd292154fbb6.tar.bz2
fiasco: Fix checking for header of next image
Diffstat (limited to 'src/fiasco.c')
-rw-r--r--src/fiasco.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fiasco.c b/src/fiasco.c
index cb890e0..79bde74 100644
--- a/src/fiasco.c
+++ b/src/fiasco.c
@@ -122,7 +122,7 @@ struct fiasco * fiasco_alloc_from_file(const char * file) {
READ_OR_RETURN(fiasco, buf, 7);
/* Header of next image */
- if ( ! buf[0] == 0x54 && buf[2] == 0x2E && buf[3] == 0x19 && buf[4] == 0x01 && buf[5] == 0x01 && buf[6] == 0x00 ) {
+ if ( ! ( buf[0] == 0x54 && buf[2] == 0x2E && buf[3] == 0x19 && buf[4] == 0x01 && buf[5] == 0x01 && buf[6] == 0x00 ) ) {
ERROR("Invalid next image header");
return fiasco;
}