aboutsummaryrefslogtreecommitdiff
path: root/src/server/authserver/Authentication
diff options
context:
space:
mode:
authorNay <dnpd.dd@gmail.com>2013-08-25 14:27:40 +0100
committerNay <dnpd.dd@gmail.com>2013-08-25 14:27:40 +0100
commit3e2f037b2059ef75140b17750eb98655cd8438c5 (patch)
treec40fa6f25ca56616c7fda83e8fa2c608497ad8b5 /src/server/authserver/Authentication
parentee3d3ab1ff5589036c41c236e4fc376f11854467 (diff)
Core&Tools: Fix warnings and non-pch build
Diffstat (limited to 'src/server/authserver/Authentication')
-rw-r--r--src/server/authserver/Authentication/TOTP.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/authserver/Authentication/TOTP.cpp b/src/server/authserver/Authentication/TOTP.cpp
index 43c97c296d9..51a21822bc0 100644
--- a/src/server/authserver/Authentication/TOTP.cpp
+++ b/src/server/authserver/Authentication/TOTP.cpp
@@ -16,6 +16,7 @@
*/
#include "TOTP.h"
+#include <cstring>
int base32_decode(const char* encoded, char* result, int bufSize)
{
@@ -29,7 +30,7 @@ int base32_decode(const char* encoded, char* result, int bufSize)
for (const char *ptr = encoded; count < bufSize && *ptr; ++ptr)
{
char ch = *ptr;
- if (ch == ' ' || ch == ' ' || ch == '\r' || ch == '\n' || ch == '-')
+ if (ch == ' ' || ch == '\t' || ch == '\r' || ch == '\n' || ch == '-')
continue;
buffer <<= 5;