- refactored all places which treated FileData as zero terminated.

This commit is contained in:
Christoph Oelckers 2023-08-20 01:49:22 +02:00
commit 2c2bf0265f
19 changed files with 63 additions and 47 deletions

View file

@ -166,8 +166,8 @@ void D_LoadWadSettings ()
while ((lump = fileSystem.FindLump ("KEYCONF", &lastlump)) != -1)
{
FileData data = fileSystem.ReadFile (lump);
const char *eof = data.GetString() + fileSystem.FileLength (lump);
const char *conf = data.GetString();
const char* conf = data.GetString();
const char *eof = conf + data.GetSize();
while (conf < eof)
{