mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-06 16:09:30 +00:00
AK: Fix base64 decoding '/'
When creating the lookup table, it wouldn't add the last character
This commit is contained in:
parent
1c27568ab0
commit
29ada654b1
|
@ -56,7 +56,7 @@ static constexpr auto make_lookup_table()
|
|||
{
|
||||
constexpr auto alphabet = make_alphabet();
|
||||
Array<u8, 256> table {};
|
||||
for (size_t i = 0; i < alphabet.size() - 1; ++i) {
|
||||
for (size_t i = 0; i < alphabet.size(); ++i) {
|
||||
table[alphabet[i]] = i;
|
||||
}
|
||||
return table;
|
||||
|
|
Loading…
Reference in a new issue