[Libreoffice-commits] .: tools/qa
David Tardon
dtardon at kemper.freedesktop.org
Tue Dec 21 02:51:45 PST 2010
tools/qa/test_reversemap.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit bd1db98524baa526a71744ae0a3711a287884f80
Author: David Tardon <dtardon at redhat.com>
Date: Tue Dec 21 11:46:05 2010 +0100
fix off-by-one bug accessing vector
diff --git a/tools/qa/test_reversemap.cxx b/tools/qa/test_reversemap.cxx
index 7ae8285..dd347ff 100644
--- a/tools/qa/test_reversemap.cxx
+++ b/tools/qa/test_reversemap.cxx
@@ -85,7 +85,7 @@ namespace
{
//Taking the single byte legacy encodings, fill in all possible values
std::vector<sal_Char> aAllChars(255);
- for (int i = 1; i <= 256; ++i)
+ for (int i = 1; i <= 255; ++i)
aAllChars[i-1] = i;
//Some slots are unused, so don't map to private, just set them to 'X'
More information about the Libreoffice-commits
mailing list