Fix a bug spotted by @Ykidia

This commit is contained in:
Nikolaj Schlej 2025-05-06 01:06:57 +07:00
parent 7073cad165
commit c0368902c4

View file

@ -996,7 +996,7 @@ not_sysf:
}
// Construct header and body
header = volumeBody.left(storeOffset + sizeof(PHOENIX_FLASH_MAP_HEADER));
header = volumeBody.mid(storeOffset, sizeof(PHOENIX_FLASH_MAP_HEADER));
body = volumeBody.mid(storeOffset + header.size(), storeSize - header.size());
// Add info