diff options
author | Daniel Pinto <danielpinto52@gmail.com> | 2017-05-17 00:22:11 +0100 |
---|---|---|
committer | Daniel Pinto <danielpinto52@gmail.com> | 2017-05-17 00:22:11 +0100 |
commit | e04da2828d6bbf1499d3df5ba85a8baf4c485bb7 (patch) | |
tree | c0ac4ce51b7be2a92f7ba9653abd8192797fef7d /src | |
parent | bbeba2412e58501da4097409258d329ca97edb2e (diff) | |
download | tor-e04da2828d6bbf1499d3df5ba85a8baf4c485bb7.tar.gz tor-e04da2828d6bbf1499d3df5ba85a8baf4c485bb7.zip |
Fixed error on BASEXX_NOPAD LEN and BUFSIZE macros #21872
Diffstat (limited to 'src')
-rw-r--r-- | src/common/util_format.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/util_format.h b/src/common/util_format.h index adf48c0077..4af8832bbe 100644 --- a/src/common/util_format.h +++ b/src/common/util_format.h @@ -23,11 +23,11 @@ #define BASE32_BUFSIZE(n) (BASE32_LEN(n) + 1) #define BASE16_BUFSIZE(n) (BASE16_LEN(n) + 1) -#define BASE64_NOPAD_LEN(n) (CEIL_DIV((n) * 4, 3) -#define BASE32_NOPAD_LEN(n) (CEIL_DIV((n) * 8, 5) +#define BASE64_NOPAD_LEN(n) (CEIL_DIV((n) * 4, 3)) +#define BASE32_NOPAD_LEN(n) (CEIL_DIV((n) * 8, 5)) -#define BASE64_NOPAD_BUFSIZE(n) (BASE64_NOPAD_LEN(n) + 1)) -#define BASE32_NOPAD_BUFSIZE(n) (BASE32_NOPAD_LEN(n) + 1)) +#define BASE64_NOPAD_BUFSIZE(n) (BASE64_NOPAD_LEN(n) + 1) +#define BASE32_NOPAD_BUFSIZE(n) (BASE32_NOPAD_LEN(n) + 1) /** @} */ #define BASE64_ENCODE_MULTILINE 1 |