From e3c1a6d3c8ca609923a87635d208472db2e384e6 Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Sat, 13 Dec 2014 11:59:42 +0000 Subject: memmove -> memcpy in some cases, review req git-svn-id: http://svn.miranda-ng.org/main/trunk@11367 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ClientChangeNotify/src/CommonLibs/TMyArray.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/ClientChangeNotify') diff --git a/plugins/ClientChangeNotify/src/CommonLibs/TMyArray.h b/plugins/ClientChangeNotify/src/CommonLibs/TMyArray.h index 68ca908fe1..3e676bf816 100644 --- a/plugins/ClientChangeNotify/src/CommonLibs/TMyArray.h +++ b/plugins/ClientChangeNotify/src/CommonLibs/TMyArray.h @@ -171,7 +171,7 @@ __forceinline void TMyArray::MoveElem(int nInde return; // nothing to do } char Elem[sizeof(T)]; - memmove(Elem, pData + nIndex, sizeof(T)); + memcpy(Elem, pData + nIndex, sizeof(T)); if (nIndex < nMoveTo) { memmove(pData + nIndex, pData + nIndex + 1, sizeof(T) * (nMoveTo - nIndex)); @@ -179,7 +179,7 @@ __forceinline void TMyArray::MoveElem(int nInde { memmove(pData + nMoveTo + 1, pData + nMoveTo, sizeof(T) * (nIndex - nMoveTo)); } - memmove(pData + nMoveTo, Elem, sizeof(T)); + memcpy(pData + nMoveTo, Elem, sizeof(T)); } template -- cgit v1.2.3