From: Yann Ylavic <ylavic@apache.org>
Date: Fri, 27 Nov 2020 16:54:50 +0000
Subject: apr_encode_base32: fix advertised output *len when called with dst ==
 NULL.
Origin: https://github.com/apache/apr/commit/2b0eb50e43667ce8cebf0bb745a0eb7d493385c2

git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1883868 13f79535-47bb-0310-9956-ffa450edef68
---
 encoding/apr_encode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/encoding/apr_encode.c b/encoding/apr_encode.c
index e44ae11f0a9c..b3278c7fd3ab 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;
-- 
2.39.2

