diff options
author | Nay <dnpd.dd@gmail.com> | 2013-08-25 14:27:40 +0100 |
---|---|---|
committer | Nay <dnpd.dd@gmail.com> | 2013-08-25 14:27:40 +0100 |
commit | 3e2f037b2059ef75140b17750eb98655cd8438c5 (patch) | |
tree | c40fa6f25ca56616c7fda83e8fa2c608497ad8b5 /src/server/authserver/Authentication | |
parent | ee3d3ab1ff5589036c41c236e4fc376f11854467 (diff) |
Core&Tools: Fix warnings and non-pch build
Diffstat (limited to 'src/server/authserver/Authentication')
-rw-r--r-- | src/server/authserver/Authentication/TOTP.cpp | 3 |
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; |