summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2020-09-14 18:33:16 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2020-09-14 18:33:16 +0200
commit7d42371fbe5a56548139063777c87a9bac9d3e40 (patch)
tree20d4098420dc1b021485b6d352c2b2356bb359b3
parent8972b0caae779ac91fbc6f1633e265124fd1a3b4 (diff)
Fix commit 4ba942d12e7094004074b6808f2532b8f877019e
-rw-r--r--src/file_ace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_ace.c b/src/file_ace.c
index 372af29..075dfde 100644
--- a/src/file_ace.c
+++ b/src/file_ace.c
@@ -175,7 +175,7 @@ static void file_check_ace(file_recovery_t *file_recovery)
return ;
}
- if(my_fseek(file_recovery->handle, -(off_t)sizeof(h)+(off_t)4, SEEK_CUR)<0 ||
+ if(my_fseek(file_recovery->handle, -(off_t)sizeof(ace_header_t)+(off_t)4, SEEK_CUR)<0 ||
check_ace_crc(file_recovery->handle, le16(h->size), le16(h->crc16)) != 0)
{
file_recovery->offset_error=file_recovery->file_size;