From 3f406cc9addbe7155bc05518715bdd292154fbb6 Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Wed, 24 Jun 2015 18:30:07 +0200 Subject: fiasco: Fix checking for header of next image --- src/fiasco.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fiasco.c') 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; } -- cgit v1.2.3