From 84d21e4de26bd69f7ca5b10f2c72779f07e11347 Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Tue, 14 Feb 2012 14:54:03 +0100 Subject: odbc 64 bit crash: correct buffer length allocation for a SQLLEN --- connectivity/source/inc/odbc/OBoundParam.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connectivity/source/inc/odbc/OBoundParam.hxx b/connectivity/source/inc/odbc/OBoundParam.hxx index 2310a2e9352b..99a4901069ef 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)]; } //-------------------------------------------------------------------- -- cgit