Fix incorrect header size

This commit is contained in:
2023-10-16 19:17:04 +02:00
parent 8e05a58610
commit 8a1f305cc7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -957,7 +957,7 @@ void XISFWriterPrivate::writeHeader()
offset += image._dataBlock.data.size();
}
uint32_t headerSize = size - sizeof(signature);
uint32_t headerSize = header.size() - sizeof(signature);
header.resize(size, 0);
header.replace(8, sizeof(uint32_t), (const char*)&headerSize, sizeof(uint32_t));