From: wessels <> Date: Sat, 2 Nov 1996 04:51:16 +0000 (+0000) Subject: From: Joe Ramey X-Git-Tag: SQUID_3_0_PRE1~5543 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=becf297798b1176efc4592750f48466a4610e25b;p=thirdparty%2Fsquid.git From: Joe Ramey Here's another bugfix for the squid-1.1beta12 base64 routine. The problem this time was that if the length of the encoded string was a multiple of four, the conversion wouldn't null terminate the string and so garbage would be appended. here's a fix: --- diff --git a/lib/base64.c b/lib/base64.c index 6e6c704e34..bbde7380b4 100644 --- a/lib/base64.c +++ b/lib/base64.c @@ -60,6 +60,6 @@ base64_decode(char *p) val = c = 0; } } - + *d = 0; return *result ? result : NULL; }