diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-04-29 11:14:06 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-04-29 11:19:12 (GMT) |
commit | 78e8af4fea3cc527b0dc5ace5a4c4445f044c2cd (patch) | |
tree | ffa89bcbe108c557d760ebffb5b7f38107296979 /tests/auto/selftests | |
parent | 6940070adb45d67a0a9186205a4914a0a6c14135 (diff) | |
download | Qt-78e8af4fea3cc527b0dc5ace5a4c4445f044c2cd.zip Qt-78e8af4fea3cc527b0dc5ace5a4c4445f044c2cd.tar.gz Qt-78e8af4fea3cc527b0dc5ace5a4c4445f044c2cd.tar.bz2 |
tst_selftest: Fix off-by-one error in cleaning up line numbers and filenames
Diffstat (limited to 'tests/auto/selftests')
-rw-r--r-- | tests/auto/selftests/tst_selftests.cpp | 4 |
1 files 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<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]); } } |