diff options
Diffstat (limited to 'xmlscript/source/xml_helper/xml_byteseq.cxx')
-rw-r--r-- | xmlscript/source/xml_helper/xml_byteseq.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmlscript/source/xml_helper/xml_byteseq.cxx b/xmlscript/source/xml_helper/xml_byteseq.cxx index b9dd1caca3a4..9e88ff9a7242 100644 --- a/xmlscript/source/xml_helper/xml_byteseq.cxx +++ b/xmlscript/source/xml_helper/xml_byteseq.cxx @@ -122,8 +122,8 @@ void BSeqOutputStream::writeBytes( Sequence< sal_Int8 > const & rData ) { sal_Int32 nPos = _seq->getLength(); _seq->realloc( nPos + rData.getLength() ); - memcpy( (char *)_seq->getArray() + nPos, - (char const *)rData.getConstArray(), + memcpy( _seq->getArray() + nPos, + rData.getConstArray(), rData.getLength() ); } void BSeqOutputStream::flush() |