diff --git a/packages/fcl-base/src/streamex.pp b/packages/fcl-base/src/streamex.pp index 92684d57b5..a15db45e91 100644 --- a/packages/fcl-base/src/streamex.pp +++ b/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]);