From: Wilfried Goesgens Date: Mon, 3 Feb 2014 16:12:38 +0000 (+0100) Subject: BASE64: forcefully terminate it after deciphering it. X-Git-Tag: v9.01~132 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=fc6cb49257a19bff1336d735a075f78fae2f4728 BASE64: forcefully terminate it after deciphering it. --- diff --git a/libcitadel/lib/stringbuf.c b/libcitadel/lib/stringbuf.c index 5e89ea2f1..436864690 100644 --- a/libcitadel/lib/stringbuf.c +++ b/libcitadel/lib/stringbuf.c @@ -2823,6 +2823,8 @@ int StrBufDecodeBase64(StrBuf *Buf) free(Buf->buf); Buf->buf = xferbuf; Buf->BufUsed = siz; + + Buf->buf[Buf->BufUsed] = '\0'; return siz; }