diff options
| author | leo <[email protected]> | 2022-02-10 16:46:40 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:46:40 +0300 | 
| commit | 980edcd3304699edf9d4e4d6a656e585028e2a72 (patch) | |
| tree | 139f47f3911484ae9af0eb347b1a88bd6c4bb35f /library/cpp/string_utils/base64 | |
| parent | b036a557f285146e5e35d4213e29a094ab907bcf (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/string_utils/base64')
| -rw-r--r-- | library/cpp/string_utils/base64/base64.cpp | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/library/cpp/string_utils/base64/base64.cpp b/library/cpp/string_utils/base64/base64.cpp index 05c201f0de7..ab1078e889a 100644 --- a/library/cpp/string_utils/base64/base64.cpp +++ b/library/cpp/string_utils/base64/base64.cpp @@ -89,7 +89,7 @@ static const char base64_bkw[] = {      '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',      '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',      '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0'}; - +   static_assert(Y_ARRAY_SIZE(base64_bkw) == 256, "wrong size");  // Base64 for url encoding, RFC3548 @@ -133,13 +133,13 @@ static inline char* Base64EncodeImpl(char* outstr, const unsigned char* instr, s          } else {              *outstr++ = base64_etab[GetBase64EncodedIndex1(instr[idx], '\0')];              *outstr++ = pad; -        } +        }           *outstr++ = pad; -    } +    }       *outstr = 0; -    return outstr; -} +    return outstr;  +}   static char* Base64EncodePlain(char* outstr, const unsigned char* instr, size_t len) {      return Base64EncodeImpl<false>(outstr, instr, len); | 
