From a5e45d3eea8a239c71da8ff871952d3e80030902 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 9 Nov 2009 13:42:44 +0100 Subject: fix my thinko in rate code. run tested Signed-off-by: Denys Vlasenko --- lib/Plugins/CCpp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit