mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 09:26:15 +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;
|
function TBase64Encoding.DoEncode(const aInput, aOutput: TStream): Integer;
|
||||||
Var
|
Var
|
||||||
S : TBase64DecodingStream;
|
S : TBase64EncodingStream;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
S:=TBase64DecodingStream.Create(aInput);
|
S:=TBase64EncodingStream.Create(aInput);
|
||||||
try
|
try
|
||||||
Result:=S.Size;
|
Result:=S.Size;
|
||||||
aOutput.CopyFrom(S,Result);
|
aOutput.CopyFrom(S,Result);
|
||||||
|
Loading…
Reference in New Issue
Block a user