From c2a48ac46ee2def38d2c26df117ad4d905e2241c Mon Sep 17 00:00:00 2001 From: David Tardon Date: Sat, 14 May 2011 14:29:43 +0200 Subject: [PATCH] array address is only MAX_ADDRESS wide --- i18npool/source/indexentry/genindex_data.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i18npool/source/indexentry/genindex_data.cxx b/i18npool/source/indexentry/genindex_data.cxx index fcd16a6f4d7f..48ae02576a87 100644 --- a/i18npool/source/indexentry/genindex_data.cxx +++ b/i18npool/source/indexentry/genindex_data.cxx @@ -79,7 +79,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) sal_Int32 nPos=0; sal_uInt32 nChar = Ostr.iterateCodePoints(&nPos, 2); - if (nChar > MAX_ADDRESS) { + if (nChar >= MAX_ADDRESS) { printf("Code point 0x%lx exceeds MAX_ADDRESS 0x%x, Please increase MAX_ADDRESS", static_cast(nChar), MAX_ADDRESS); exit(1); }