- refactored all places which treated FileData as zero terminated.
This commit is contained in:
parent
79e6d068a9
commit
2c2bf0265f
19 changed files with 63 additions and 47 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue