diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-01-21 15:43:00 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-01-21 15:43:00 +0000 |
commit | 662f31f46ffc72020d2da29660160d254218797e (patch) | |
tree | af47aab4663417873abe9d7bddb205a7c679d48f /connectivity | |
parent | 9b0acfe2ad9c4d9fa947312ad2cb6063c1cd86a6 (diff) |
INTEGRATION: CWS dba22 (1.15.74); FILE MERGED
2004/12/10 11:02:52 oj 1.15.74.1: #117841 # the size given to external components is now reduced by 1 to avoid that they corrupt our return address
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/odbc/OResultSetMetaData.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/source/drivers/odbc/OResultSetMetaData.cxx b/connectivity/source/drivers/odbc/OResultSetMetaData.cxx index 72443696a7..e0f827fa35 100644 --- a/connectivity/source/drivers/odbc/OResultSetMetaData.cxx +++ b/connectivity/source/drivers/odbc/OResultSetMetaData.cxx @@ -2,9 +2,9 @@ * * $RCSfile: OResultSetMetaData.cxx,v $ * - * $Revision: 1.15 $ + * $Revision: 1.16 $ * - * last change: $Author: rt $ $Date: 2004-03-02 12:35:14 $ + * last change: $Author: kz $ $Date: 2005-01-21 16:42:59 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -83,7 +83,7 @@ OResultSetMetaData::~OResultSetMetaData() column = m_vMapping[_column]; SQLSMALLINT BUFFER_LEN = 128; - char *pName = new char[BUFFER_LEN]; + char *pName = new char[BUFFER_LEN+1]; SQLSMALLINT nRealLen=0; SQLRETURN nRet = N3SQLColAttribute(m_aStatementHandle, (SQLUSMALLINT)column, @@ -100,7 +100,7 @@ OResultSetMetaData::~OResultSetMetaData() OTools::ThrowException(m_pConnection,nRet,m_aStatementHandle,SQL_HANDLE_STMT,*this); if(nRealLen > BUFFER_LEN) { - pName = new char[nRealLen]; + pName = new char[nRealLen+1]; nRet = N3SQLColAttribute(m_aStatementHandle, (SQLUSMALLINT)column, (SQLUSMALLINT)ident, |