diff options
Diffstat (limited to 'contrib/llvm/tools/lldb/source/Host/common/ThisThread.cpp')
-rw-r--r-- | contrib/llvm/tools/lldb/source/Host/common/ThisThread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/llvm/tools/lldb/source/Host/common/ThisThread.cpp b/contrib/llvm/tools/lldb/source/Host/common/ThisThread.cpp index 289ec78..7637014 100644 --- a/contrib/llvm/tools/lldb/source/Host/common/ThisThread.cpp +++ b/contrib/llvm/tools/lldb/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; |