You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by da...@apache.org on 2016/04/17 18:56:01 UTC

svn commit: r1739631 - /openoffice/trunk/main/connectivity/source/drivers/flat/ETable.cxx

Author: damjan
Date: Sun Apr 17 16:56:00 2016
New Revision: 1739631

URL: http://svn.apache.org/viewvc?rev=1739631&view=rev
Log:
Fix a string limit error in my previous patch.

Patch by: me


Modified:
    openoffice/trunk/main/connectivity/source/drivers/flat/ETable.cxx

Modified: openoffice/trunk/main/connectivity/source/drivers/flat/ETable.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/connectivity/source/drivers/flat/ETable.cxx?rev=1739631&r1=1739630&r2=1739631&view=diff
==============================================================================
--- openoffice/trunk/main/connectivity/source/drivers/flat/ETable.cxx (original)
+++ openoffice/trunk/main/connectivity/source/drivers/flat/ETable.cxx Sun Apr 17 16:56:00 2016
@@ -910,7 +910,7 @@ sal_Bool OFlatTable::readLine(QuotedToke
     xub_StrLen nLastOffset = 0;
     bool isQuoted = false;
     bool isFieldStarting = true;
-    while (true)
+    while (sLine.Len() < STRING_MAXLEN)
     {
         bool wasQuote = false;
         const sal_Unicode *p;