mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 16:09:25 +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
|
With OpenRead(aPath) do
|
||||||
try
|
try
|
||||||
SetLength(Result,Size);
|
SetLength(Result,Size);
|
||||||
ReadBuffer(Result,0);
|
ReadBuffer(Result,Size);
|
||||||
finally
|
finally
|
||||||
Free;
|
Free;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user