basic/source/basmgr/basmgr.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit f3c89726d2234c0803c005dc87392f94147a481f
Author:     FerMeza <fernando.meza.orteg...@gmail.com>
AuthorDate: Tue Apr 8 00:23:44 2025 -0600
Commit:     Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
CommitDate: Tue Apr 8 17:24:05 2025 +0200

    tdf#163691 Replace memcpy with std::copy in basmgr.cxx
    
    Change-Id: I88558282937fe9c4dfb2f102309583f932a4617c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183827
    Tested-by: Jenkins
    Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>

diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx
index 3112021319da..bb11ec1963bc 100644
--- a/basic/source/basmgr/basmgr.cxx
+++ b/basic/source/basmgr/basmgr.cxx
@@ -43,6 +43,7 @@
 
 #include <scriptcont.hxx>
 
+#include <algorithm>
 #include <memory>
 #include <vector>
 
@@ -1756,7 +1757,7 @@ static uno::Sequence< sal_Int8 > implGetDialogData( 
SbxObject* pDialog )
     uno::Sequence< sal_Int8 > aData( nLen );
     sal_Int8* pDestData = aData.getArray();
     const sal_Int8* pSrcData = static_cast<const 
sal_Int8*>(aMemStream.GetData());
-    memcpy( pDestData, pSrcData, nLen );
+    std::copy( pSrcData, pSrcData + nLen, pDestData );
     return aData;
 }
 

Reply via email to