diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-13 11:59:42 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-13 11:59:42 +0000 |
commit | e3c1a6d3c8ca609923a87635d208472db2e384e6 (patch) | |
tree | 14cd1a354929e175f43fbd200fdd283a28e481e6 /plugins/ClientChangeNotify/src | |
parent | b0dd8ba58e708865ef6e3ed6e596699fc64f4c2d (diff) |
memmove -> memcpy in some cases, review req
git-svn-id: http://svn.miranda-ng.org/main/trunk@11367 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ClientChangeNotify/src')
-rw-r--r-- | plugins/ClientChangeNotify/src/CommonLibs/TMyArray.h | 4 |
1 files changed, 2 insertions, 2 deletions
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<T, ARG_T, GrowBy, FreeThreshold>::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<T, ARG_T, GrowBy, FreeThreshold>::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 <class T, class ARG_T, int GrowBy, int FreeThreshold>
|