mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 11:08:02 +02:00
* Apply fix from bug #0038734 from Andrea Mauri to update vpbyte after fillbuffer in a loop. The second instance of fillbuffer is safe, because it is at the procedure exit, and vpbyte is a local variable.
git-svn-id: trunk@49219 -
This commit is contained in:
parent
dbecb67d45
commit
a06c18bd07
@ -432,6 +432,7 @@ begin
|
||||
Move(FBuffer[VPosition], AString[Succ(VStrLength)], VLength);
|
||||
end;
|
||||
FillBuffer;
|
||||
VPByte := @FBuffer[FBufferPosition];
|
||||
VPosition := FBufferPosition;
|
||||
end;
|
||||
until (FBufferPosition = FBufferRead) or (VPByte^ in [10, 13]);
|
||||
|
Loading…
Reference in New Issue
Block a user