summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-30 22:09:28 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-30 22:09:28 +0300
commitd3d6c6fc60a878b2742bb614e87fee0a04c69759 (patch)
treea7d81843fcda860a03c6e58dbb07308f069785b7 /src/utils
parentb8fefae63e5ddd8a3463988fbfeaea25d389e225 (diff)
downloadmanaplus-d3d6c6fc60a878b2742bb614e87fee0a04c69759.tar.gz
manaplus-d3d6c6fc60a878b2742bb614e87fee0a04c69759.tar.bz2
manaplus-d3d6c6fc60a878b2742bb614e87fee0a04c69759.tar.xz
manaplus-d3d6c6fc60a878b2742bb614e87fee0a04c69759.zip
Fix some macro definition for some compiler versions.
Add clang version macro.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/base64.cpp3
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;