diff options
| author | Vincent Richard <[email protected]> | 2005-04-09 09:00:53 +0000 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2005-04-09 09:00:53 +0000 |
| commit | 3952df7eaa222bb9f911c5cad8cc796ee3cd9a05 (patch) | |
| tree | 077908409ac909b73d05bcdaaa91455b89043649 /src | |
| parent | Fixed warning. (diff) | |
| download | vmime-3952df7eaa222bb9f911c5cad8cc796ee3cd9a05.tar.gz vmime-3952df7eaa222bb9f911c5cad8cc796ee3cd9a05.zip | |
Fixed bug in Base64 decoding.
Diffstat (limited to 'src')
| -rw-r--r-- | src/encoderB64.cpp | 5 |
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) { |
