diff options
Diffstat (limited to 'source/Host/common/ThisThread.cpp')
-rw-r--r-- | source/Host/common/ThisThread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Host/common/ThisThread.cpp b/source/Host/common/ThisThread.cpp index 289ec780e9fb..763701441c1a 100644 --- a/source/Host/common/ThisThread.cpp +++ b/source/Host/common/ThisThread.cpp @@ -37,7 +37,7 @@ ThisThread::SetName(llvm::StringRef name, int max_length) { // We're still too long. Since this is a dotted component, use everything after the last // dot, up to a maximum of |length| characters. - std::string::size_type last_dot = truncated_name.find_last_of("."); + std::string::size_type last_dot = truncated_name.rfind('.'); if (last_dot != std::string::npos) begin = last_dot + 1; |