summaryrefslogtreecommitdiff
path: root/vcl/unx/kde/UnxCommandThread.cxx
diff options
context:
space:
mode:
authorjailletc36 <christophe.jaillet@wanadoo.fr>2012-11-11 11:51:07 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-11-14 16:48:17 +0000
commitde51745f588a2e2aa933e4c33fae3d9a10385eb1 (patch)
treea15f8d5c02080f32df73bf2bbf13170bc7b8ac04 /vcl/unx/kde/UnxCommandThread.cxx
parent5b1fcd5262f087e3d1cabb240d1761064baeafc6 (diff)
Turn some memmove into memcpy when it is safe to do so.
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 <christophe.jaillet@wanadoo.fr> Reviewed-on: https://gerrit.libreoffice.org/1033 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx/kde/UnxCommandThread.cxx')
-rw-r--r--vcl/unx/kde/UnxCommandThread.cxx2
1 files changed, 1 insertions, 1 deletions
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;