Tag: cws_src680_dba22ui User: fs Date: 2006/10/25 03:45:34 Modified: dba/connectivity/source/drivers/dbase/DTable.cxx
Log: when writing VARCHARs, care for too-long strings Issue number: #i62664# Submitted by: [EMAIL PROTECTED] Reviewed by: [EMAIL PROTECTED] File Changes: Directory: /dba/connectivity/source/drivers/dbase/ ================================================== File [changed]: DTable.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/dbase/DTable.cxx?r1=1.98&r2=1.98.20.1 Delta lines: +5 -5 ------------------- --- DTable.cxx 17 Sep 2006 02:23:49 -0000 1.98 +++ DTable.cxx 25 Oct 2006 10:45:32 -0000 1.98.20.1 @@ -4,9 +4,9 @@ * * $RCSfile: DTable.cxx,v $ * - * $Revision: 1.98 $ + * $Revision: 1.98.20.1 $ * - * last change: $Author: obo $ $Date: 2006/09/17 02:23:49 $ + * last change: $Author: fs $ $Date: 2006/10/25 10:45:32 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -1653,8 +1653,8 @@ // convert the string, using the connection's encoding ::rtl::OString sEncoded; - DBTypeConversion::convertUnicodeString( sStringToWrite, sEncoded, getConnection()->getTextEncoding() ); - memcpy( pData, sEncoded.getStr(), ::std::min( nLen, sEncoded.getLength() ) ); + DBTypeConversion::convertUnicodeStringToLength( sStringToWrite, sEncoded, nLen, getConnection()->getTextEncoding() ); + memcpy( pData, sEncoded.getStr(), sEncoded.getLength() ); } break; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
