2 Commits

Author SHA1 Message Date
nou 8a1f305cc7 Fix incorrect header size 2023-10-16 19:17:04 +02:00
nou 8e05a58610 Version 0.2.9 2023-08-13 19:13:39 +02:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.14)
project(libXISF VERSION 0.2.8 LANGUAGES CXX C
project(libXISF VERSION 0.2.10 LANGUAGES CXX C
HOMEPAGE_URL https://gitea.nouspiro.space/nou/libXISF
DESCRIPTION "LibXISF is C++ library that can read and write XISF files produced by PixInsight.")
+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));