summaryrefslogtreecommitdiffstats
path: root/tools/lldb-mi/MICmdCmdData.cpp
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-09-06 18:37:19 +0000
committerdim <dim@FreeBSD.org>2015-09-06 18:37:19 +0000
commit23814158e5384f73c6fa951b66d5f807f9c24a2b (patch)
tree9d2de4884bec31a1e16bbf0b5a6bfb90d96e16af /tools/lldb-mi/MICmdCmdData.cpp
parent80b639cd40df427b9e325318efeec2d885a65f62 (diff)
downloadFreeBSD-src-23814158e5384f73c6fa951b66d5f807f9c24a2b.zip
FreeBSD-src-23814158e5384f73c6fa951b66d5f807f9c24a2b.tar.gz
Import stripped lldb 3.7.0 release (r246257).
Diffstat (limited to 'tools/lldb-mi/MICmdCmdData.cpp')
-rw-r--r--tools/lldb-mi/MICmdCmdData.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lldb-mi/MICmdCmdData.cpp b/tools/lldb-mi/MICmdCmdData.cpp
index 0b950d5..21036f8 100644
--- a/tools/lldb-mi/MICmdCmdData.cpp
+++ b/tools/lldb-mi/MICmdCmdData.cpp
@@ -1789,7 +1789,7 @@ CMICmdCmdDataInfoLine::Acknowledge(void)
// ^ -- line
const size_t nLineStartPos = nFileEndPos + 1;
const size_t nLineEndPos = rLine.find(':', nLineStartPos);
- const size_t nLineLen = nLineEndPos != std::string::npos ? nLineEndPos - nLineStartPos - 1
+ const size_t nLineLen = nLineEndPos != std::string::npos ? nLineEndPos - nLineStartPos
: std::string::npos;
const CMIUtilString strLine(rLine.substr(nLineStartPos, nLineLen).c_str());
const CMICmnMIValueConst miValueConst4(strLine);
OpenPOWER on IntegriCloud