From c774b82786fbef0ae17263f55bdeb2f2cb7b4fa7 Mon Sep 17 00:00:00 2001 From: bladeoner Date: Fri, 7 Jun 2019 04:30:14 +0200 Subject: [PATCH] Snes9x - Use helper function. (#860) --- source/snes9x/bml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/snes9x/bml.cpp b/source/snes9x/bml.cpp index df2531e..05aa88c 100644 --- a/source/snes9x/bml.cpp +++ b/source/snes9x/bml.cpp @@ -47,7 +47,7 @@ static std::string trim(std::string str) for (start = 0; str[start] && start != (int)str.length() && isblank(str[start]); start++) {} if (start >= (int)str.length()) return std::string(""); - for (end = str.length() - 1; isblank(str[end]) || str[end] == '\n' || str[end] == '\r'; end--) {} + for (end = str.length() - 1; isblankorlf(str[end]); end--) {} return str.substr(start, end - start + 1); }