mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-18 02:59:28 +02:00
* Use correct stream type in TBase64Encoding.DoEncode, fix issue #40779
This commit is contained in:
parent
0248b9904c
commit
52c65e076f
@ -140,10 +140,10 @@ end;
|
||||
|
||||
function TBase64Encoding.DoEncode(const aInput, aOutput: TStream): Integer;
|
||||
Var
|
||||
S : TBase64DecodingStream;
|
||||
S : TBase64EncodingStream;
|
||||
|
||||
begin
|
||||
S:=TBase64DecodingStream.Create(aInput);
|
||||
S:=TBase64EncodingStream.Create(aInput);
|
||||
try
|
||||
Result:=S.Size;
|
||||
aOutput.CopyFrom(S,Result);
|
||||
|
Loading…
Reference in New Issue
Block a user