aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2018-04-14 21:39:58 +0200
committerMatthias Andree <matthias.andree@gmx.de>2018-04-14 21:39:58 +0200
commit9deaf399553050b3b426e8a39d0ffd22430bf72d (patch)
tree9bf7de273c7a2936ff07a0da67b1cbec2aab72a5 /imap.c
parent3a36394465a4e6e3c64bb5b1255717df753bb4a9 (diff)
downloadfetchmail-9deaf399553050b3b426e8a39d0ffd22430bf72d.tar.gz
fetchmail-9deaf399553050b3b426e8a39d0ffd22430bf72d.tar.bz2
fetchmail-9deaf399553050b3b426e8a39d0ffd22430bf72d.zip
In-depth fix for to64frombits() BASE64 encoder buffer sizing.
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/imap.c b/imap.c
index 82c01b6d..3eb831f9 100644
--- a/imap.c
+++ b/imap.c
@@ -392,7 +392,7 @@ static int do_authcert (int sock, const char *command, const char *name)
{
size_t len = strlen(name);
if ((len / 3) + ((len % 3) ? 4 : 0) < sizeof(buf))
- to64frombits (buf, name, strlen(name));
+ to64frombits (buf, name, strlen(name), sizeof buf);
else
return PS_AUTHFAIL; /* buffer too small. */
}