diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2012-02-14 14:54:03 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-02-14 16:06:57 +0100 |
commit | f3f925c8a4784cf578d2ab2d1b3f593f582bcdbc (patch) | |
tree | 20a2ecd8b180f306e626304576b6e75affa48d44 /connectivity | |
parent | 249fdaa87062fc8a6a7d5a068a7d1401b6c37b5c (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>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/inc/odbc/OBoundParam.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
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)]; } //-------------------------------------------------------------------- |