--- Merging r49219 into '.':

U    packages/fcl-base/src/streamex.pp
--- Recording mergeinfo for merge of r49219 into '.':
 U   .

# revisions: 49219
r49219 | marco | 2021-04-17 16:30:42 +0200 (Sat, 17 Apr 2021) | 1 line
Changed paths:
   M /trunk/packages/fcl-base/src/streamex.pp

* Apply fix from bug  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: branches/fixes_3_2@49243 -
This commit is contained in:
marco 2021-04-22 09:49:47 +00:00
parent acb59c7592
commit b29cd3117a

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