aboutsummaryrefslogtreecommitdiffstats
path: root/cram.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 /cram.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 'cram.c')
-rw-r--r--cram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cram.c b/cram.c
index cf33393e..4ac4a31f 100644
--- a/cram.c
+++ b/cram.c
@@ -122,7 +122,7 @@ int do_cram_md5 (int sock, const char *command, struct query *ctl, const char *s
response[8], response[9], response[10], response[11],
response[12], response[13], response[14], response[15]);
- to64frombits (buf1, reply, strlen(reply));
+ to64frombits (buf1, reply, strlen(reply), sizeof buf1);
/* ship the authentication back, accept the server's responses */
/* PMDF5.2 IMAP has a bug that requires this to be a single write */