diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-07-05 13:28:30 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-07-05 13:30:59 +0100 |
commit | 7e0b90aff31bc3d1bf3775ecb5fff4e8174f6db4 (patch) | |
tree | 52851ce3548c896e9990efb1c1dedb7725ad5c8c /connectivity | |
parent | 18992f308d7f1d9b972cb307666e4a4a18778eea (diff) |
aDBFColumn.db_typ is input controlled
so we can't guarantee that it is valid ascii
Change-Id: Icdc6162db4405df729e548a836de5662255088ed
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/dbase/DTable.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx index aa09743eff78..12b2610e705a 100644 --- a/connectivity/source/drivers/dbase/DTable.cxx +++ b/connectivity/source/drivers/dbase/DTable.cxx @@ -345,7 +345,7 @@ void ODbaseTable::fillColumns() char cType[2]; cType[0] = aDBFColumn.db_typ; cType[1] = 0; - aTypeName = OUString::createFromAscii(cType); + aTypeName = OUString(cType, 1, RTL_TEXTENCODING_ASCII_US); SAL_INFO( "connectivity.drivers","column type: " << aDBFColumn.db_typ); switch (aDBFColumn.db_typ) |