summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2010-09-02 12:25:23 +0200
committerFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2010-09-02 12:25:23 +0200
commit31a09194214fdaa8e98525c13e3802e154c0d82c (patch)
treec197ce2a57d64d19c1b2b4acc624ed94b31b6651
parentca707070e754a6fafba5ae75f36db4f7430efe1b (diff)
dba33i: #i113684# proper termination condition when reading large strings
-rw-r--r--connectivity/source/drivers/odbcbase/OTools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/odbcbase/OTools.cxx b/connectivity/source/drivers/odbcbase/OTools.cxx
index f84f8e7101..50900426fe 100644
--- a/connectivity/source/drivers/odbcbase/OTools.cxx
+++ b/connectivity/source/drivers/odbcbase/OTools.cxx
@@ -578,7 +578,7 @@ Sequence<sal_Int8> OTools::getBytesValue(OConnection* _pConnection,
// StarView zu lang ist oder der Treiber kann die Laenge der
// Daten nicht im voraus bestimmen - also als MemoryStream
// speichern.
- while ((pcbValue == SQL_NO_TOTAL ) || pcbValue > nMaxLen)
+ while ((pcbValue == SQL_NO_TOTAL ) || nLen > nMaxLen)
{
// Bei Strings wird der Puffer nie ganz ausgenutzt
// (das letzte Byte ist immer ein NULL-Byte, das