summaryrefslogtreecommitdiff
path: root/remotebridges
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2010-02-08 09:18:14 +0100
committersb <sb@openoffice.org>2010-02-08 09:18:14 +0100
commit10ddd5251072599a6d1b598dc861d6dc31babf13 (patch)
treec4e156dc578d285501399eee97303d759035f497 /remotebridges
parenta55d2f6a21a5068a43241f73dd0cadbe28ae6774 (diff)
parentcb6dc8c0cbadd25385d581c0dd3583afc10fd26a (diff)
sb118: merged in DEV300_m71
Diffstat (limited to 'remotebridges')
-rw-r--r--remotebridges/source/bridge/bridge_connection.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/remotebridges/source/bridge/bridge_connection.cxx b/remotebridges/source/bridge/bridge_connection.cxx
index ebb49dba1874..8da07ab246b7 100644
--- a/remotebridges/source/bridge/bridge_connection.cxx
+++ b/remotebridges/source/bridge/bridge_connection.cxx
@@ -77,8 +77,8 @@ namespace remotebridges_bridge
try
{
// TODO possible optimization : give
- ::rtl::ByteSequence seq( nSize , ::rtl::BYTESEQ_NODEFAULT );
- sal_Int32 nRead = m->m_r->read( *(Sequence<sal_Int8>*)&seq , nSize );
+ Sequence<sal_Int8> seq = toUnoSequence( ::rtl::ByteSequence(nSize, ::rtl::BYTESEQ_NODEFAULT) );
+ sal_Int32 nRead = m->m_r->read( seq , nSize );
memcpy( pDest , seq.getConstArray() , nRead );
return nRead;
}