mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-07 22:50:24 +02:00
* don't assume stream is at position=0 mantis #0037332
git-svn-id: trunk@45776 -
This commit is contained in:
parent
c5ea2a50f9
commit
515b92263f
@ -146,7 +146,7 @@ Var
|
||||
|
||||
begin
|
||||
S:='';
|
||||
SetLength(S,Source.Size);
|
||||
SetLength(S,Source.Size-Source.Position);
|
||||
if Length(S)>0 then
|
||||
Source.ReadBuffer(S[1],Length(S));
|
||||
Create(S,AOptions)
|
||||
|
Loading…
Reference in New Issue
Block a user