* 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:
marco 2021-04-17 14:30:42 +00:00
parent dbecb67d45
commit a06c18bd07

View File

@ -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]);