Skip to content

Commit e0285e7

Browse files
committed
2 parents ef4acd2 + 425bf36 commit e0285e7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ASCII.ahk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ LC_BinStr_EncodeText(Text, Pretty=False, Encoding="UTF-8") {
3838

3939
LC_BinStr_DecodeText(Text, Encoding="UTF-8") {
4040
Len := LC_BinStr_Decode(Bin, Text)
41-
return StrGet(&Bin, Encoding)
41+
return StrGet(&Bin, Len, Encoding)
4242
}
4343

4444
LC_BinStr_Encode(ByRef Out, ByRef In, InLen, Pretty=False) {
@@ -64,4 +64,4 @@ LC_BinStr_Decode(ByRef Out, ByRef In) {
6464
Byte := Byte<<1 | SubStr(In, BitIndex++, 1)
6565
NumPut(Byte, Out, A_Index-1, "UChar")
6666
}
67-
}
67+
}

src/Base64.ahk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LC_Base64_EncodeText(Text,Encoding="UTF-8")
88
LC_Base64_DecodeText(Text,Encoding="UTF-8")
99
{
1010
Len := LC_Base64_Decode(Bin, Text)
11-
return StrGet(&Bin, Encoding)
11+
return StrGet(&Bin, Len, Encoding)
1212
}
1313

1414
LC_Base64_Encode(ByRef Out, ByRef In, InLen)

0 commit comments

Comments
 (0)