diff options
author | Yann Ylavic <ylavic@apache.org> | 2020-11-27 16:54:50 +0000 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2020-11-27 16:54:50 +0000 |
commit | 2b0eb50e43667ce8cebf0bb745a0eb7d493385c2 (patch) | |
tree | 3ba710854dd499d90ab5160061ee3359bfcc457e /encoding | |
parent | 1622024bac013e3b978db68e91636cc5e5fa2f13 (diff) | |
download | apr-2b0eb50e43667ce8cebf0bb745a0eb7d493385c2.tar.gz |
apr_encode_base32: fix advertised output *len when called with dst == NULL.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1883868 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'encoding')
-rw-r--r-- | encoding/apr_encode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/encoding/apr_encode.c b/encoding/apr_encode.c index e44ae11f0..b3278c7fd 100644 --- a/encoding/apr_encode.c +++ b/encoding/apr_encode.c @@ -665,7 +665,7 @@ APR_DECLARE(apr_status_t) apr_encode_base32(char *dest, const char *src, } if (len) { - *len = ((slen + 2) / 3 * 4) + 1; + *len = ((slen + 4) / 5 * 8) + 1; } return APR_SUCCESS; |