From 4dd293d551d02f9632c76e02c11c5b83e24066ac Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 26 Jun 2021 12:04:21 +0200 Subject: [PATCH] - zero-terminate the buffer for reading Blood's INI files. --- source/games/blood/src/inifile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/blood/src/inifile.cpp b/source/games/blood/src/inifile.cpp index b90af0da1..e2fad85d7 100644 --- a/source/games/blood/src/inifile.cpp +++ b/source/games/blood/src/inifile.cpp @@ -171,7 +171,7 @@ void IniFile::Load() auto fp = fileSystem.OpenFileReader(fileName); if (fp.isOpen()) { - auto pBuffer = fp.Read(); + auto pBuffer = fp.ReadPadded(1); LoadRes(pBuffer.Data()); } else