aboutsummaryrefslogtreecommitdiffstats
path: root/src/encoderB64.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/encoderB64.cpp')
-rw-r--r--src/encoderB64.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/encoderB64.cpp b/src/encoderB64.cpp
index 405eac25..bb78ac6a 100644
--- a/src/encoderB64.cpp
+++ b/src/encoderB64.cpp
@@ -186,6 +186,11 @@ const utility::stream::size_type encoderB64::decode(utility::inputStream& in, ut
while (bufferPos < bufferLength || !in.eof())
{
+ bytes[0] = '=';
+ bytes[1] = '=';
+ bytes[2] = '=';
+ bytes[3] = '=';
+
// Need to get more data?
if (bufferPos >= bufferLength)
{