summaryrefslogtreecommitdiffstats
path: root/lib/Plugins
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-11-09 13:42:44 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-11-09 13:42:44 +0100
commita5e45d3eea8a239c71da8ff871952d3e80030902 (patch)
tree5307b0ce9e0302d4818e7996a60084e1546fd3fd /lib/Plugins
parentff0d8ed597eeaf8d80238ace1b26b65b43495e26 (diff)
downloadabrt-a5e45d3eea8a239c71da8ff871952d3e80030902.tar.gz
abrt-a5e45d3eea8a239c71da8ff871952d3e80030902.tar.xz
abrt-a5e45d3eea8a239c71da8ff871952d3e80030902.zip
fix my thinko in rate code. run tested
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Plugins')
-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;