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 /src/modules | |
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 'src/modules')
-rw-r--r-- | src/modules/addcontact/addcontact.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/addcontact/addcontact.cpp b/src/modules/addcontact/addcontact.cpp index 3a98550715..32fda286c7 100644 --- a/src/modules/addcontact/addcontact.cpp +++ b/src/modules/addcontact/addcontact.cpp @@ -241,11 +241,11 @@ INT_PTR AddContactDialog(WPARAM wParam, LPARAM lParam) return 1;
ADDCONTACTSTRUCT *acs = (ADDCONTACTSTRUCT*)mir_alloc(sizeof(ADDCONTACTSTRUCT));
- memmove(acs, (ADDCONTACTSTRUCT*)lParam, sizeof(ADDCONTACTSTRUCT));
+ memcpy(acs, (ADDCONTACTSTRUCT*)lParam, sizeof(ADDCONTACTSTRUCT));
if (acs->psr) {
// bad! structures that are bigger than psr will cause crashes if they define pointers within unreachable structural space
PROTOSEARCHRESULT *psr = (PROTOSEARCHRESULT*)mir_alloc(acs->psr->cbSize);
- memmove(psr, acs->psr, acs->psr->cbSize);
+ memcpy(psr, acs->psr, acs->psr->cbSize);
psr->nick = psr->flags & PSR_UNICODE ? mir_u2t((wchar_t*)psr->nick) : mir_a2t((char*)psr->nick);
psr->firstName = psr->flags & PSR_UNICODE ? mir_u2t((wchar_t*)psr->firstName) : mir_a2t((char*)psr->firstName);
psr->lastName = psr->flags & PSR_UNICODE ? mir_u2t((wchar_t*)psr->lastName) : mir_a2t((char*)psr->lastName);
|