mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 21:09:24 +02:00
* Patch from Yuri Silver to read data correctly. fix issue 39517
This commit is contained in:
parent
fd54c958c9
commit
2460ecb9d9
@ -834,7 +834,7 @@ begin
|
||||
if aCount>MaxBufSize then
|
||||
aCount:=MaxBufSize;
|
||||
SetLength(Buf,aCount);
|
||||
aTransport.ReadBytes(Buf,aCount);
|
||||
acount:=aTransport.ReadBytes(Buf,aCount);
|
||||
Move(Buf[0],Content[aPos],aCount);
|
||||
Inc(aPos,aCount);
|
||||
ToRead:=DataLength-aPos;
|
||||
|
Loading…
Reference in New Issue
Block a user