aboutsummaryrefslogtreecommitdiffstats
path: root/src/inspstring.cpp
diff options
context:
space:
mode:
authorGravatar Daniel De Graaf2010-02-21 11:23:40 -0600
committerGravatar Daniel De Graaf2010-08-03 17:32:36 -0400
commitfbb6489840b1ad5ed84c332f3bdc2d3547887b63 (patch)
treed8765be318c80ecd947b1a08f1bf24c0699f00ae /src/inspstring.cpp
parentAdd HMAC implementation to HashProvider (diff)
Fix base64 decoding function
Diffstat (limited to 'src/inspstring.cpp')
-rw-r--r--src/inspstring.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspstring.cpp b/src/inspstring.cpp
index 74629bf55..3b87a3f70 100644
--- a/src/inspstring.cpp
+++ b/src/inspstring.cpp
@@ -212,7 +212,7 @@ std::string Base64ToBin(const std::string& data_str, const char* table)
std::string rv;
while (ok)
{
- const char* find = strchr(table, *data);
+ const char* find = strchr(table, *data++);
ok = (find && find < table + 64);
buffer = (buffer << 6) | (ok ? find - table : 0);
bitcount += 6;