diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-30 22:09:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-30 22:09:28 +0300 |
commit | d3d6c6fc60a878b2742bb614e87fee0a04c69759 (patch) | |
tree | a7d81843fcda860a03c6e58dbb07308f069785b7 /src/utils | |
parent | b8fefae63e5ddd8a3463988fbfeaea25d389e225 (diff) | |
download | manaplus-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.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; |