Skip to content

Commit

Permalink
- zero-terminate the buffer for reading Blood's INI files.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers authored and mjr4077au committed Jul 17, 2021
1 parent ffff400 commit 416b941
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/games/blood/src/inifile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ void IniFile::Load()
auto fp = fileSystem.OpenFileReader(fileName);
if (fp.isOpen())
{
int nSize = fp.GetLength();
auto pBuffer = fp.Read();
auto pBuffer = fp.ReadPadded(1);
LoadRes(pBuffer.Data());
}
else
Expand Down

0 comments on commit 416b941

Please sign in to comment.