Sfoglia il codice sorgente

--- 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 #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: branches/fixes_3_2@49243 -

marco 4 anni fa
parent
commit
b29cd3117a
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      packages/fcl-base/src/streamex.pp

+ 1 - 0
packages/fcl-base/src/streamex.pp

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