summaryrefslogtreecommitdiff
path: root/tests/auto/selftests/tst_selftests.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-04-29 13:14:06 +0200
committerThiago Macieira <thiago.macieira@nokia.com>2010-04-29 13:19:12 +0200
commit78e8af4fea3cc527b0dc5ace5a4c4445f044c2cd (patch)
treeffa89bcbe108c557d760ebffb5b7f38107296979 /tests/auto/selftests/tst_selftests.cpp
parent6940070adb45d67a0a9186205a4914a0a6c14135 (diff)
downloadqt4-tools-78e8af4fea3cc527b0dc5ace5a4c4445f044c2cd.tar.gz
tst_selftest: Fix off-by-one error in cleaning up line numbers and filenames
Diffstat (limited to 'tests/auto/selftests/tst_selftests.cpp')
-rw-r--r--tests/auto/selftests/tst_selftests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/selftests/tst_selftests.cpp b/tests/auto/selftests/tst_selftests.cpp
index 0be4e2260f..30b212686e 100644
--- a/tests/auto/selftests/tst_selftests.cpp
+++ b/tests/auto/selftests/tst_selftests.cpp
@@ -131,11 +131,11 @@ static QList<QByteArray> 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]);
}
}