summaryrefslogtreecommitdiff
path: root/encoding/apr_base64.c
diff options
context:
space:
mode:
authordirkx <dirkx@13f79535-47bb-0310-9956-ffa450edef68>2017-01-24 07:46:10 +0000
committerdirkx <dirkx@13f79535-47bb-0310-9956-ffa450edef68>2017-01-24 07:46:10 +0000
commit061cdafe7e0a19226e9496705ff2e61bffb1168a (patch)
tree6f22b9cddecc34feff115aa300b1dbe9b75ab403 /encoding/apr_base64.c
parent99920bb732d30a2d145030316f90bb8949b3964b (diff)
downloadlibapr-061cdafe7e0a19226e9496705ff2e61bffb1168a.tar.gz
apr_base64_encode_len() already inclues the \0.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1780034 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'encoding/apr_base64.c')
-rw-r--r--encoding/apr_base64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/encoding/apr_base64.c b/encoding/apr_base64.c
index 82e6e23d1..b07aede01 100644
--- a/encoding/apr_base64.c
+++ b/encoding/apr_base64.c
@@ -285,7 +285,7 @@ APR_DECLARE(char *) apr_pbase64_encode(apr_pool_t *p, const char *string)
char *encoded;
int l = strlen(string);
- encoded = (char *) apr_palloc(p, 1 + apr_base64_encode_len(l));
+ encoded = (char *) apr_palloc(p, apr_base64_encode_len(l));
l = apr_base64_encode(encoded, string, l);
encoded[l] = '\0'; /* make binary sequence into string */