summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-07-05 13:28:30 +0100
committerAndras Timar <andras.timar@collabora.com>2015-08-06 12:53:14 +0200
commitc5caecc69e1e6fcf24967b74401ecdbbc0a84b44 (patch)
treee723f9544efda16690cf402fe7fec061388558c1 /connectivity
parentbd85b99b42958fed7c7aad440cf6cd76ad32727e (diff)
aDBFColumn.db_typ is input controlled
so we can't guarantee that it is valid ascii Change-Id: Icdc6162db4405df729e548a836de5662255088ed (cherry picked from commit 7e0b90aff31bc3d1bf3775ecb5fff4e8174f6db4) Reviewed-on: https://gerrit.libreoffice.org/16779 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/dbase/DTable.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx
index 3f05fe671f69..889d7ccc91c7 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)