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 /src/modules/netlib | |
parent | a85d3756ce4eb0257025b005deb795ba05fd4fda (diff) |
CopyMemory -> memcpy
git-svn-id: http://svn.miranda-ng.org/main/trunk@11363 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/netlib')
-rw-r--r-- | src/modules/netlib/netliblog.cpp | 6 | ||||
-rw-r--r-- | src/modules/netlib/netlibssl.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/netlib/netliblog.cpp b/src/modules/netlib/netliblog.cpp index 90c77aafe1..5f18385f14 100644 --- a/src/modules/netlib/netliblog.cpp +++ b/src/modules/netlib/netliblog.cpp @@ -437,8 +437,8 @@ void NetlibDumpData(NetlibConnection *nlc, PBYTE buf, int len, int sent, int fla int sz = titleLineLen + len + 1;
useStack = sz <= 8192;
szBuf = (char*)(useStack ? alloca(sz) : mir_alloc(sz));
- CopyMemory(szBuf, szTitleLine, titleLineLen);
- CopyMemory(szBuf + titleLineLen, (const char*)buf, len);
+ memcpy(szBuf, szTitleLine, titleLineLen);
+ memcpy(szBuf + titleLineLen, (const char*)buf, len);
szBuf[titleLineLen + len] = '\0';
}
// Binary data
@@ -448,7 +448,7 @@ void NetlibDumpData(NetlibConnection *nlc, PBYTE buf, int len, int sent, int fla useStack = sz <= 8192;
szBuf = (char*)(useStack ? alloca(sz) : mir_alloc(sz));
- CopyMemory(szBuf, szTitleLine, titleLineLen);
+ memcpy(szBuf, szTitleLine, titleLineLen);
char *pszBuf = szBuf + titleLineLen;
for (line = 0;; line += 16) {
colsInLine = min(16, len - line);
diff --git a/src/modules/netlib/netlibssl.cpp b/src/modules/netlib/netlibssl.cpp index 456670ae8f..fa9a77028d 100644 --- a/src/modules/netlib/netlibssl.cpp +++ b/src/modules/netlib/netlibssl.cpp @@ -896,7 +896,7 @@ int NetlibSslWrite(SslHandle *ssl, const char *buf, int num) while (sendOff < (DWORD)num)
{
cbMessage = min(Sizes.cbMaximumMessage, (DWORD)num - sendOff);
- CopyMemory(pbMessage, buf+sendOff, cbMessage);
+ memcpy(pbMessage, buf+sendOff, cbMessage);
Buffers[0].pvBuffer = pbDataBuffer;
Buffers[0].cbBuffer = Sizes.cbHeader;
|