Adjust Header to be non Nul Terminated

This commit is contained in:
2022-09-25 22:16:33 +02:00
parent 6e27fc27fb
commit a50d89f4aa
5 changed files with 15 additions and 13 deletions
+2 -2
View File
@@ -41,8 +41,8 @@ namespace file
{
std::ofstream out(BASE_DIRECTORY RECORDING_DIRECTORY + fileName,
std::fstream::binary);
char header[] = {'V', 'G', 'A', 'R', '\0', 1};
out.write(header, 6);
out.write(RECORDING_HEADER, 4);
out.write("\1", 1);
for (const RecordingEntry &entry : this->entries) {
entry.toFile(out);
}