Browse Source

Fix unfolded base64 encoding

tags/1.1.0
Vsevolod Stakhov 8 years ago
parent
commit
440d438fff
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/libutil/str_util.c

+ 1
- 1
src/libutil/str_util.c View File

@@ -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;

Loading…
Cancel
Save