diff options
Diffstat (limited to 'src/common/Encoding/Base32.cpp')
-rw-r--r-- | src/common/Encoding/Base32.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/Encoding/Base32.cpp b/src/common/Encoding/Base32.cpp index 6866536848c..a091ed1ca18 100644 --- a/src/common/Encoding/Base32.cpp +++ b/src/common/Encoding/Base32.cpp @@ -36,9 +36,10 @@ struct B32Impl { if (v == '0') return Decode('O'); if (v == '1') return Decode('l'); + if (v == '8') return Decode('B'); if (('A' <= v) && (v <= 'Z')) return (v-'A'); if (('a' <= v) && (v <= 'z')) return (v-'a'); - if (('2' <= v) && (v <= '8')) return (v-'2')+26; + if (('2' <= v) && (v <= '7')) return (v-'2')+26; return DECODE_ERROR; } }; |