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/Clist_modern/src/modern_skinengine.cpp | 2 +- plugins/Clist_modern/src/modern_skinselector.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Clist_modern/src') diff --git a/plugins/Clist_modern/src/modern_skinengine.cpp b/plugins/Clist_modern/src/modern_skinengine.cpp index 8ca58b8255..fcf7b55e8c 100644 --- a/plugins/Clist_modern/src/modern_skinengine.cpp +++ b/plugins/Clist_modern/src/modern_skinengine.cpp @@ -3727,7 +3727,7 @@ TCHAR *ske_ParseText(TCHAR *stzText) break; if (curpos - stpos > 0) { TCHAR *var = (TCHAR *)mir_alloc((curpos - stpos + 1)*sizeof(TCHAR)); - memmove(var, stzText + stpos, (curpos - stpos)*sizeof(TCHAR)); + memcpy(var, stzText + stpos, (curpos - stpos)*sizeof(TCHAR)); var[curpos - stpos] = (TCHAR)'\0'; var = ske_ReplaceVar(var); result = ske_ReAppend(result, var, 0); diff --git a/plugins/Clist_modern/src/modern_skinselector.cpp b/plugins/Clist_modern/src/modern_skinselector.cpp index 6a95c9acb5..c2c6f1320a 100644 --- a/plugins/Clist_modern/src/modern_skinselector.cpp +++ b/plugins/Clist_modern/src/modern_skinselector.cpp @@ -169,7 +169,7 @@ int DeleteMaskByItID(DWORD mID, LISTMODERNMASK *mmTemplateList) DWORD i; SkinSelector_DeleteMask(&(mmTemplateList->pl_Masks[mID])); newAlocation = (MODERNMASK *)mir_alloc(sizeof(MODERNMASK)*mmTemplateList->dwMaskCnt-1); - memmove(newAlocation,mmTemplateList->pl_Masks,sizeof(MODERNMASK)*(mID+1)); + memcpy(newAlocation,mmTemplateList->pl_Masks,sizeof(MODERNMASK)*(mID+1)); for (i = mID; i < mmTemplateList->dwMaskCnt-1; i++) { newAlocation[i] = mmTemplateList->pl_Masks[i+1]; -- cgit v1.2.3