From 78e8af4fea3cc527b0dc5ace5a4c4445f044c2cd Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 29 Apr 2010 13:14:06 +0200 Subject: tst_selftest: Fix off-by-one error in cleaning up line numbers and filenames --- tests/auto/selftests/tst_selftests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/auto/selftests/tst_selftests.cpp b/tests/auto/selftests/tst_selftests.cpp index 0be4e22..30b2126 100644 --- a/tests/auto/selftests/tst_selftests.cpp +++ b/tests/auto/selftests/tst_selftests.cpp @@ -131,11 +131,11 @@ static QList splitLines(QByteArray ba) if (index == -1) { continue; } - int end = line.indexOf('"', index + strlen(markers[j][0]) + 1); + int end = line.indexOf('"', index + strlen(markers[j][0])); if (end == -1) { continue; } - line.replace(index, end-index, markers[j][1]); + line.replace(index, end-index + 1, markers[j][1]); } } -- cgit v0.12