Skip to content

Commit

Permalink
fix CutSpace bug
Browse files Browse the repository at this point in the history
  • Loading branch information
steve02081504 committed Mar 4, 2022
1 parent be1aaf5 commit fc84915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tama.cpp
Expand Up @@ -646,7 +646,7 @@ bool Split(wstring &str, wstring &s0, wstring &s1, const wstring sepstr) {
void CutSpace(wstring &str) {
// str前後の空白とタブを削る

str = str.substr(str.find_first_not_of(L" \t"), str.find_last_of(L" \t"));
str = str.substr(str.find_first_not_of(L" \t"), str.find_last_not_of(L" \t")+1);
}

int HexStrToInt(const wchar_t *str) {
Expand Down

0 comments on commit fc84915

Please sign in to comment.