From b4da7d9fb2f0408c42e139dc85c13b7d5d499662 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Mon, 20 Oct 2025 02:24:43 +0100 Subject: [PATCH] Fix initial offset for dump hardware data copying --- src/close.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/close.c b/src/close.c index c8fe8fc..7d44c72 100644 --- a/src/close.c +++ b/src/close.c @@ -3458,7 +3458,7 @@ static void write_dumphw_block(aaruformat_context *ctx) if(buffer == NULL) return; // Start to iterate and copy the data - size_t offset = 0; + size_t offset = sizeof(DumpHardwareHeader); for(int i = 0; i < ctx->dump_hardware_header.entries; i++) { size_t entry_size = sizeof(DumpHardwareEntry) +