diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-13 09:25:14 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-13 09:25:14 +0000 |
commit | b5b57169c2833b9e70cc4cff7cae127c11f02683 (patch) | |
tree | 7785b60d2dbd94e4618f527716d8fe224cec15c2 /protocols/EmLanProto | |
parent | a85d3756ce4eb0257025b005deb795ba05fd4fda (diff) |
CopyMemory -> memcpy
git-svn-id: http://svn.miranda-ng.org/main/trunk@11363 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/EmLanProto')
-rw-r--r-- | protocols/EmLanProto/src/mlan.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/EmLanProto/src/mlan.cpp b/protocols/EmLanProto/src/mlan.cpp index 2e170253ab..df0db3b074 100644 --- a/protocols/EmLanProto/src/mlan.cpp +++ b/protocols/EmLanProto/src/mlan.cpp @@ -298,7 +298,7 @@ void CMLan::OnRecvPacket(u_char* mes, int len, in_addr from) cont->m_status = ID_STATUS_OFFLINE; int nlen = (int)strlen(pak.strName); cont->m_nick = new char[nlen+1]; - CopyMemory(cont->m_nick, pak.strName, nlen+1); + memcpy(cont->m_nick, pak.strName, nlen+1); m_pRootContact = cont; } else @@ -308,7 +308,7 @@ void CMLan::OnRecvPacket(u_char* mes, int len, in_addr from) delete[] cont->m_nick; int nlen = (int)strlen(pak.strName); cont->m_nick = new char[nlen+1]; - CopyMemory(cont->m_nick, pak.strName, nlen+1); + memcpy(cont->m_nick, pak.strName, nlen+1); } } cont->m_time = MLAN_CHECK + MLAN_TIMEOUT; @@ -716,7 +716,7 @@ u_char* CMLan::CreatePacket(TPacket& pak, int* pBufLen) { *pb++ = 1+nameLen+1; *pb++ = MCODE_SND_NAME; - CopyMemory(pb, pak.strName, nameLen); + memcpy(pb, pak.strName, nameLen); pb += nameLen; *pb++ = 0; } @@ -739,7 +739,7 @@ u_char* CMLan::CreatePacket(TPacket& pak, int* pBufLen) *((u_int*)pb) = pak.idMessage; pb += sizeof(u_int); if (mesLen) - CopyMemory(pb, pak.strMessage, mesLen); + memcpy(pb, pak.strMessage, mesLen); pb += mesLen; *pb++ = 0; } @@ -772,7 +772,7 @@ u_char* CMLan::CreatePacket(TPacket& pak, int* pBufLen) *((u_int*)pb) = pak.idAckAwayMessage; pb += sizeof(u_int); if (awayLen) - CopyMemory(pb, pak.strAwayMessage, awayLen); + memcpy(pb, pak.strAwayMessage, awayLen); pb += awayLen; *pb++ = 0; } |