mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-26 13:09:14 +02:00
parent
0c415f0a1d
commit
6c152e5c94
@ -1141,8 +1141,8 @@ begin
|
||||
try
|
||||
// read the first 1024 bytes
|
||||
Len:=1024;
|
||||
SetLength(Buf,1024+1);
|
||||
Len:=fs.Read(Buf[1],length(Buf));
|
||||
SetLength(Buf,Len+1);
|
||||
Len:=fs.Read(Buf[1],Len);
|
||||
if Len>0 then begin
|
||||
Buf[Len+1]:=#0;
|
||||
p:=PChar(Buf);
|
||||
|
Loading…
Reference in New Issue
Block a user