Trim file names with null characters to prevent causing trouble

This commit is contained in:
Michael Becker 2014-06-04 19:22:52 -04:00
parent 87aaf78a97
commit 013438faf4

View File

@ -30,6 +30,8 @@ namespace UniversalEditor.DataFormats.FileSystem.Descent
while (!br.EndOfStream)
{
string FileName = br.ReadFixedLengthString(13);
FileName = FileName.TrimNull();
int length = br.ReadInt32();
long offset = br.Accessor.Position;