fix base64 (==)

This commit is contained in:
François 2023-01-01 00:07:36 +01:00
parent 38085291ea
commit e3bbc5ddde

View File

@ -311,8 +311,7 @@ kaz::base64Decode (string &content) {
buff [j] = 0;
*q = buff [0] << 2 | (buff [1] & 0x30) >> 4;
++q;
--idx;
if (idx) {
if (idx > 2) {
*q = buff [1] << 4 | (buff [2] & 0x3c) >> 2;
++q;
}