src: Fix crash

This commit is contained in:
Tatsuhiro Tsujikawa 2015-02-11 01:05:22 +09:00
parent 4401f697e5
commit 73b999a662
1 changed files with 2 additions and 1 deletions

View File

@ -467,7 +467,8 @@ void to_token68(std::string &base64str) {
return c;
}
});
base64str.erase(std::find(std::begin(base64str), std::end(base64str), '='));
base64str.erase(std::find(std::begin(base64str), std::end(base64str), '='),
std::end(base64str));
}
void to_base64(std::string &token68str) {