From de51745f588a2e2aa933e4c33fae3d9a10385eb1 Mon Sep 17 00:00:00 2001 From: jailletc36 Date: Sun, 11 Nov 2012 11:51:07 +0100 Subject: Turn some memmove into memcpy when it is safe to do so. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Most of the changes are related to newly allocated memory, so we are sure it can not overlap with the source of the copy. Change-Id: Ie6ccf1bbb07b792fb18601a38dfaa55755d14b7d Signed-off-by: jailletc36 Reviewed-on: https://gerrit.libreoffice.org/1033 Reviewed-by: Tor Lillqvist Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- vcl/unx/kde/UnxCommandThread.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl/unx') diff --git a/vcl/unx/kde/UnxCommandThread.cxx b/vcl/unx/kde/UnxCommandThread.cxx index 8daf3b14c550..b27a149799b3 100644 --- a/vcl/unx/kde/UnxCommandThread.cxx +++ b/vcl/unx/kde/UnxCommandThread.cxx @@ -150,7 +150,7 @@ void SAL_CALL UnxFilePickerCommandThread::run() nBufferSize *= 2; sal_Char *pNewBuffer = new sal_Char[nBufferSize]; if ( pEntryBegin < pBufferEnd ) - memmove( pNewBuffer, pEntryBegin, pWhereToReadEnd - pEntryBegin ); + memcpy( pNewBuffer, pEntryBegin, pWhereToReadEnd - pEntryBegin ); delete[] pBuffer; pBuffer = pNewBuffer; -- cgit -1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2017-04-21gbuild: Remove MSVC 2013 legacy codeDavid Ostrovsky
2016-09-29Fix naming of makefile to mend make dump-deps.Michael Meeks