diff --git a/src/osuparser.cpp b/src/osuparser.cpp index c7a4805..0aff48a 100644 --- a/src/osuparser.cpp +++ b/src/osuparser.cpp @@ -9,7 +9,7 @@ inline std::string trimString(const std::string &str) { std::string ret(str); ret.erase(0, ret.find_first_not_of(" \n\r\t")); - ret.erase(ret.find_last_not_of(" \n\r\t") + 1); + ret.erase(ret.find_last_not_of(" \n\r\t") + 1, std::string::npos); return ret; }