diff options
author | Michael Meeks <michael.meeks@novell.com> | 2011-01-14 14:23:52 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2011-01-31 20:00:50 +0000 |
commit | 88808cc257071aec0d56d1ca056e241c946765a9 (patch) | |
tree | 9667d96d9368c13083f345759816c00bcd3bc39d /xmlhelp/source | |
parent | 8e6b74c1ec581b372034c3f7fab09dfedeb41850 (diff) |
make the xmlhelp fix even safer
Diffstat (limited to 'xmlhelp/source')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/databases.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx index d7cf7d1a23a6..2ca87546fed6 100644 --- a/xmlhelp/source/cxxhelp/provider/databases.cxx +++ b/xmlhelp/source/cxxhelp/provider/databases.cxx @@ -826,13 +826,13 @@ void KeywordInfo::KeywordElement::init( Databases *pDatabases,Db* pDb,const rtl: listTitle.realloc( id.size() ); int nSize = 0; + Dbt data; + DBData aDBData; const sal_Char* pData = NULL; const sal_Char pEmpty[] = ""; for( sal_uInt32 i = 0; i < id.size(); ++i ) { - DBData aDBData; - listId[i] = id[i]; listAnchor[i] = anchor[i]; @@ -855,7 +855,6 @@ void KeywordInfo::KeywordElement::init( Databases *pDatabases,Db* pDb,const rtl: { Dbt key_( static_cast< void* >( const_cast< sal_Char* >( idi.getStr() ) ), idi.getLength() ); - Dbt data; pDb->get( 0,&key_,&data,0 ); nSize = data.get_size(); pData = static_cast<sal_Char*>( data.get_data() ); |