aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/str_util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-11 00:34:30 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-11 00:34:30 +0000
commit440d438fffc17b62ce08fb26d24a1ad0e36fbeb6 (patch)
tree5ad0b5a07958b9f94294e1dbcd045a2ec516944e /src/libutil/str_util.c
parent81307d2ac40ae85267551e803b0576a64191e4cc (diff)
downloadrspamd-440d438fffc17b62ce08fb26d24a1ad0e36fbeb6.tar.gz
rspamd-440d438fffc17b62ce08fb26d24a1ad0e36fbeb6.zip
Fix unfolded base64 encoding
Diffstat (limited to 'src/libutil/str_util.c')
-rw-r--r--src/libutil/str_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c
index 8254aa2ad..c4b0ea173 100644
--- a/src/libutil/str_util.c
+++ b/src/libutil/str_util.c
@@ -624,7 +624,7 @@ rspamd_encode_base64_common (const guchar *in, gsize inlen, gint str_len,
} } \
while (0)
- gsize allocated_len = (inlen / 3) * 4 + 4;
+ gsize allocated_len = (inlen / 3) * 4 + 5;
gchar *out, *o;
guint64 n;
guint32 rem, t, carry;