From 52deddeb7ba487e11c6ecf6ab74e52630cefd1e9 Mon Sep 17 00:00:00 2001 From: danieldg Date: Sun, 21 Feb 2010 17:27:30 +0000 Subject: Fix base64 decoding function git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12509 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspstring.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/inspstring.cpp') 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; -- cgit v1.2.3