mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 10:59:18 +02:00
* use unaligned instead some hacking :)
git-svn-id: trunk@11755 -
This commit is contained in:
parent
bf98838366
commit
7c82bbcbcd
@ -951,9 +951,7 @@ begin
|
||||
Move(OldBuf^, FCharBuf^, Remainder);
|
||||
BytesRead := FStream.Read(FAllocated[Slack-4], FCapacity);
|
||||
FCharBufEnd := FAllocated + (Slack-4) + BytesRead;
|
||||
// fcharbufend can be unaligned, split.
|
||||
Pchar(FCharBufEnd)^ := #0;
|
||||
Pchar(FCharBufEnd+1)^ := #0;
|
||||
Unaligned(PWideChar(FCharBufEnd)^) := #0;
|
||||
end;
|
||||
|
||||
{ TXMLFileInputSource }
|
||||
|
Loading…
Reference in New Issue
Block a user