cmcfixes69: #i108151#: remotebridges: fix strict aliasing
This commit is contained in:
parent
9815530eb1
commit
a3a11b622b
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue