* committed fix for unaligned access from id 12079

git-svn-id: trunk@11751 -
This commit is contained in:
marco 2008-09-12 16:59:56 +00:00
parent 39fb51dff3
commit 0d9bf5addb

View File

@ -951,7 +951,9 @@ begin
Move(OldBuf^, FCharBuf^, Remainder);
BytesRead := FStream.Read(FAllocated[Slack-4], FCapacity);
FCharBufEnd := FAllocated + (Slack-4) + BytesRead;
PWideChar(FCharBufEnd)^ := #0;
// fcharbufend can be unaligned, split.
Pchar(FCharBufEnd)^ := #0;
Pchar(FCharBufEnd+1)^ := #0;
end;
{ TXMLFileInputSource }