diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/base64.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils/base64.cpp b/src/utils/base64.cpp index ddf117ec4..b0828e99f 100644 --- a/src/utils/base64.cpp +++ b/src/utils/base64.cpp @@ -162,6 +162,9 @@ unsigned char *php3_base64_decode(const unsigned char *restrict const string, return nullptr; case 2: k++; + // copy from 3. is it should be here? + result[k++] = 0; + break; case 3: result[k++] = 0; break; |