aboutsummaryrefslogtreecommitdiff
path: root/src/base64.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/base64.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/base64.cpp b/src/base64.cpp
index ccf9077..55df550 100644
--- a/src/base64.cpp
+++ b/src/base64.cpp
@@ -118,9 +118,14 @@ size_t Bu::Base64::read( void *pBuf, size_t nBytes )
118 { 118 {
119 if( rNext.isEos() ) 119 if( rNext.isEos() )
120 { 120 {
121 iChars = 0;
122 bEosIn = true; 121 bEosIn = true;
123 throw Base64Exception("Premature end of stream detected while decoding Base64 data."); 122 if( j != 0 )
123 {
124 throw Base64Exception(
125 "Premature end of stream detected while "
126 "decoding Base64 data."
127 );
128 }
124 } 129 }
125 return sIn; 130 return sIn;
126 } 131 }