mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-11 10:58:23 +02:00
* ReadAllBytes was not reading all bytes. Fixes issue #40789
This commit is contained in:
parent
e29d1ecda9
commit
9eb77599e1
@ -1991,7 +1991,7 @@ begin
|
||||
With OpenRead(aPath) do
|
||||
try
|
||||
SetLength(Result,Size);
|
||||
ReadBuffer(Result,0);
|
||||
ReadBuffer(Result,Size);
|
||||
finally
|
||||
Free;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user