summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2012-02-14 14:54:03 +0100
committerMichael Stahl <mstahl@redhat.com>2012-02-14 16:22:52 +0100
commitadb1ed5f13b4638690ca2966138eb2c61bdb1b53 (patch)
treeec972ea811673c41461035fa6f223bcf6da2b154
parent15fe1596b265aff57264145c0e69d36607cc15a5 (diff)
odbc 64 bit crash: correct buffer length allocation for a SQLLEN
(cherry picked from commit 84d21e4de26bd69f7ca5b10f2c72779f07e11347) Signed-off-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r--connectivity/source/inc/odbc/OBoundParam.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/inc/odbc/OBoundParam.hxx b/connectivity/source/inc/odbc/OBoundParam.hxx
index 5817aac107..b8856e9275 100644
--- a/connectivity/source/inc/odbc/OBoundParam.hxx
+++ b/connectivity/source/inc/odbc/OBoundParam.hxx
@@ -68,7 +68,7 @@ namespace connectivity
// to a Java sal_Int32. The jdbcodbc 'C' bridge provides an
// interface to do this.
- paramLength = new sal_Int8[4];
+ paramLength = new sal_Int8[sizeof(SQLLEN)];
}
//--------------------------------------------------------------------