From d6ea7db911b2108f0dff67d619088756d35c1efb Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Mon, 20 Oct 2025 00:40:42 +0100 Subject: [PATCH] Fix offset when returning dump hardware list. --- src/dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dump.c b/src/dump.c index a8828d3..beb58f9 100644 --- a/src/dump.c +++ b/src/dump.c @@ -249,7 +249,7 @@ AARU_EXPORT int32_t AARU_CALL aaruf_get_dumphw(void *context, uint8_t *buffer, s *length = required_length; // Start to iterate and copy the data - size_t offset = 0; + size_t offset = sizeof(DumpHardwareHeader); for(uint32_t i = 0; i < ctx->dump_hardware_header.entries; i++) { size_t entry_size = sizeof(DumpHardwareEntry);