This is an automated email from the ASF dual-hosted git repository.
damjan pushed a commit to branch AOO41X
in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit dd133a3a6af1f5f887e98c0f25e106c82e84178d
Author: damjan <damjan@13f79535-47bb-0310-9956-ffa450edef68>
AuthorDate: Sun Apr 17 16:56:00 2016 +0000
Fix a string limit error in my previous patch.
Patch by: me
git-svn-id: https://svn.apache.org/repos/asf/openoffice/trunk@1739631
13f79535-47bb-0310-9956-ffa450edef68
(cherry picked from commit ab01ac79e0467416147c6ad674c82b0a44adb5a3)
---
main/connectivity/source/drivers/flat/ETable.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/main/connectivity/source/drivers/flat/ETable.cxx
b/main/connectivity/source/drivers/flat/ETable.cxx
index af28717c07..0f0e576b3d 100644
--- a/main/connectivity/source/drivers/flat/ETable.cxx
+++ b/main/connectivity/source/drivers/flat/ETable.cxx
@@ -910,7 +910,7 @@ sal_Bool OFlatTable::readLine(QuotedTokenizedString& line,
sal_Int32& _rnCurrent
xub_StrLen nLastOffset = 0;
bool isQuoted = false;
bool isFieldStarting = true;
- while (true)
+ while (sLine.Len() < STRING_MAXLEN)
{
bool wasQuote = false;
const sal_Unicode *p;