xmlscript/source/xml_helper/xml_byteseq.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit fda2cfeb8e69ec95bb464301140999486d06b984 Author: Rohan Sinha <rohan05.si...@gmail.com> AuthorDate: Sat Mar 29 23:54:48 2025 -0700 Commit: Hossein <hoss...@libreoffice.org> CommitDate: Fri May 9 14:11:13 2025 +0200 tdf#163691 replace memcpy with std::copy in xml_byteseq Change-Id: I6d178bcb6127ba444bf4566906efe46204f5ab6d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183511 Reviewed-by: Hossein <hoss...@libreoffice.org> Tested-by: Jenkins diff --git a/xmlscript/source/xml_helper/xml_byteseq.cxx b/xmlscript/source/xml_helper/xml_byteseq.cxx index a4cca34e2649..7a976463d048 100644 --- a/xmlscript/source/xml_helper/xml_byteseq.cxx +++ b/xmlscript/source/xml_helper/xml_byteseq.cxx @@ -120,9 +120,9 @@ void BSeqOutputStream::writeBytes( Sequence< sal_Int8 > const & rData ) sal_Int32 nPos = _seq->size(); _seq->resize( nPos + rData.getLength() ); if (rData.getLength() != 0) { - memcpy( _seq->data() + nPos, - rData.getConstArray(), - rData.getLength() ); + std::copy(rData.getConstArray(), + rData.getConstArray() + rData.getLength(), + _seq->begin() + nPos); } } void BSeqOutputStream::flush()