diff options
author | Yann Ylavic <ylavic@apache.org> | 2020-11-27 20:44:12 +0000 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2020-11-27 20:44:12 +0000 |
commit | 31cf18582df6c467e12d59bf3850427a7f6a5a30 (patch) | |
tree | 2eda0f15f2841e127878b07e3d3a8420875d354f | |
parent | 1d73bd68279dfa83115ff99cc4670eb1e478f2fb (diff) | |
download | apr-31cf18582df6c467e12d59bf3850427a7f6a5a30.tar.gz |
Merge r1883868 from trunk:
apr_encode_base32: fix advertised output *len when called with dst == NULL.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1883879 13f79535-47bb-0310-9956-ffa450edef68
-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; |