From 7d42371fbe5a56548139063777c87a9bac9d3e40 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Mon, 14 Sep 2020 18:33:16 +0200 Subject: [PATCH] Fix commit 4ba942d12e7094004074b6808f2532b8f877019e --- src/file_ace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file_ace.c b/src/file_ace.c index 372af293..075dfde9 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;