summaryrefslogtreecommitdiff
path: root/source/Host/common/ThisThread.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2015-12-30 11:55:28 +0000
committerDimitry Andric <dim@FreeBSD.org>2015-12-30 11:55:28 +0000
commite81d9d49145e432d917eea3a70d2ae74dcad1d89 (patch)
tree9ed5e1a91f242e2cb5911577356e487a55c01b78 /source/Host/common/ThisThread.cpp
parent85d8ef8f1f0e0e063a8571944302be2d2026f823 (diff)
Notes
Diffstat (limited to 'source/Host/common/ThisThread.cpp')
-rw-r--r--source/Host/common/ThisThread.cpp2
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;