summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Plugins/CCpp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Plugins/CCpp.cpp b/lib/Plugins/CCpp.cpp
index e06d9bc0..6d6edd56 100644
--- a/lib/Plugins/CCpp.cpp
+++ b/lib/Plugins/CCpp.cpp
@@ -209,7 +209,7 @@ static int rate_backtrace(const char *backtrace)
{
if (backtrace[i] == '#') /* this separates frames from each other */
{
- std::string s(backtrace + 1, len);
+ std::string s(backtrace + i + 1, len);
multiplier++;
rating += rate_line(s.c_str()) * multiplier;
best_possible_rating += BestRating * multiplier;