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 | 48d8d32321e70c59e6f5090c9e92cd63c667c012 (patch) | |
tree | d36d23006b247b681b06b57b2099c3242fefcf15 /connectivity | |
parent | 1a47619b4552cefaa40ec631b679eb14e82469d3 (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 61be5d03f0f9..f129d146e172 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, |