4.24 beta

This commit is contained in:
Igor Pavlov
2005-07-05 00:00:00 +00:00
committed by Kornel Lesiński
parent ac2b563958
commit 47f4915611
66 changed files with 757 additions and 366 deletions

View File

@@ -133,12 +133,12 @@ bool CFSFolder::LoadComments()
UInt64 length;
if (!file.GetLength(length))
return false;
if (length >= 0xFFFFFFF)
if (length >= (1 << 28))
return false;
AString s;
char *p = s.GetBuffer((size_t)length + 1);
UINT32 processedSize;
file.Read(p, length, processedSize);
file.Read(p, (UInt32)length, processedSize);
p[length] = 0;
s.ReleaseBuffer();
s.Replace("\r\n", "\n");