mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit bbfb3d43d3c124a90073fc6f9c554e2ad3153609
parent 91749bf3b421cebc1c36ac229792bdca168db905
Author: Duncaen <mail@duncano.de>
Date:   Sat, 29 Jul 2017 20:43:23 +0200

rfc2047: zero buffer

Diffstat:
rfc2047.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/rfc2047.c b/rfc2047.c @@ -78,6 +78,8 @@ blaze822_decode_b64(char *s, char *e, char **deco, size_t *decleno) char *buf = malloc((e - s) / 4 * 3 + 1); if (!buf) return 0; + memset(buf, 0, (e - s) / 4 * 3); + *deco = buf;