[Libreoffice-commits] core.git: connectivity/source

Caolán McNamara caolanm at redhat.com
Sun Jul 5 05:31:27 PDT 2015


 connectivity/source/drivers/dbase/DTable.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7e0b90aff31bc3d1bf3775ecb5fff4e8174f6db4
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun Jul 5 13:28:30 2015 +0100

    aDBFColumn.db_typ is input controlled
    
    so we can't guarantee that it is valid ascii
    
    Change-Id: Icdc6162db4405df729e548a836de5662255088ed

diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx
index aa09743..12b2610 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)


More information about the Libreoffice-commits mailing list