summaryrefslogtreecommitdiffstats
path: root/src/file_mft.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-05-11 09:25:39 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-05-11 09:25:39 +0200
commite1ca4010307fb53d83c5036f6c8269eb9066c928 (patch)
tree79a9547954c70be7ddc88324990d60a163ffb16d /src/file_mft.c
parentf63304053aa32515e4853c2472fb785bcda0307c (diff)
remove always-true memcmp
Diffstat (limited to 'src/file_mft.c')
-rw-r--r--src/file_mft.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_mft.c b/src/file_mft.c
index 9b28c21..40bd1f2 100644
--- a/src/file_mft.c
+++ b/src/file_mft.c
@@ -70,7 +70,7 @@ static int header_check_mft(const unsigned char *buffer, const unsigned int buff
const unsigned int attrs_offset = le16(mft_rec->attrs_offset);
const unsigned int bytes_in_use = le32(mft_rec->bytes_in_use);
const unsigned int bytes_allocated = le32(mft_rec->bytes_allocated);
- if(!(memcmp(buffer,"FILE",4)==0 &&
+ if(!(memcmp(buffer,"FILE",4)==0 &&
usa_ofs+usa_count <= attrs_offset &&
42 <= attrs_offset &&
attrs_offset%8==0 &&