projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd2f73d
)
OpenSSL ssl_base64_encode(): Remove superfluous space
author
Fabian Keil
<fk@fabiankeil.de>
Mon, 15 Feb 2021 10:18:55 +0000
(11:18 +0100)
committer
Fabian Keil
<fk@fabiankeil.de>
Sun, 21 Feb 2021 15:09:21 +0000
(16:09 +0100)
openssl.c
patch
|
blob
|
history
diff --git
a/openssl.c
b/openssl.c
index
1386d16
..
469c217
100644
(file)
--- a/
openssl.c
+++ b/
openssl.c
@@
-1289,7
+1289,7
@@
static void log_ssl_errors(int debuglevel, const char* fmt, ...)
extern int ssl_base64_encode(unsigned char *dst, size_t dlen, size_t *olen,
const unsigned char *src, size_t slen)
{
- *olen = 4 * ((slen/3)
+ ((slen%3) ? 1 : 0)) + 1;
+ *olen = 4 * ((slen/3) + ((slen%3) ? 1 : 0)) + 1;
if (*olen > dlen)
{
return ENOBUFS;