diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-22 19:52:29 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-22 19:52:29 +0000 |
commit | babf7873a3fe373d60ef22b1b671d98e014d8819 (patch) | |
tree | e21dfdb68839616efbbd884dfa77a1745f1c35d7 /protocols/ICQCorp/src | |
parent | a89887eb202c99ce09107668561abce6704f9004 (diff) |
replace strcpy to mir_strcpy
git-svn-id: http://svn.miranda-ng.org/main/trunk@13763 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/ICQCorp/src')
-rw-r--r-- | protocols/ICQCorp/src/corp.cpp | 2 | ||||
-rw-r--r-- | protocols/ICQCorp/src/protocol.cpp | 8 | ||||
-rw-r--r-- | protocols/ICQCorp/src/services.cpp | 6 | ||||
-rw-r--r-- | protocols/ICQCorp/src/transfer.cpp | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/protocols/ICQCorp/src/corp.cpp b/protocols/ICQCorp/src/corp.cpp index a1dd243c59..7b27d31966 100644 --- a/protocols/ICQCorp/src/corp.cpp +++ b/protocols/ICQCorp/src/corp.cpp @@ -71,7 +71,7 @@ extern "C" __declspec(dllexport) int Load() GetModuleFileName(hInstance, fileName, MAX_PATH);
FindClose(FindFirstFile(fileName, &findData));
findData.cFileName[mir_strlen(findData.cFileName) - 4] = 0;
- strcpy(protoName, findData.cFileName);
+ mir_strcpy(protoName, findData.cFileName);
CallService(MS_PROTO_REGISTERMODULE, 0, (LPARAM)&pd);
diff --git a/protocols/ICQCorp/src/protocol.cpp b/protocols/ICQCorp/src/protocol.cpp index 65fbaf3bed..9dadf66044 100644 --- a/protocols/ICQCorp/src/protocol.cpp +++ b/protocols/ICQCorp/src/protocol.cpp @@ -1572,8 +1572,8 @@ ICQEvent *ICQ::sendUrl(ICQUser *u, char *url) descriptionLen = (unsigned int)mir_strlen(description);
m = new char[nameLen + descriptionLen + 2];
- strcpy(m, description);
- strcpy(m + descriptionLen + 1, url);
+ mir_strcpy(m, description);
+ mir_strcpy(m + descriptionLen + 1, url);
m[descriptionLen] = (char)0xFE;
result = send(u, ICQ_CMDxTCP_URL, "url", m);
@@ -2307,8 +2307,8 @@ void ICQ::addFileReq(ICQUser *u, char *m, char *filename, unsigned long size, un szBlob = new char[sizeof(DWORD) + mir_strlen(filename) + mir_strlen(m) + 2];
*(PDWORD)szBlob = (DWORD)transfer;
- strcpy(szBlob + sizeof(DWORD), filename);
- strcpy(szBlob + sizeof(DWORD) + mir_strlen(filename) + 1, m);
+ mir_strcpy(szBlob + sizeof(DWORD), filename);
+ mir_strcpy(szBlob + sizeof(DWORD) + mir_strlen(filename) + 1, m);
ccs.hContact = u->hContact;
ccs.szProtoService = PSR_FILE;
diff --git a/protocols/ICQCorp/src/services.cpp b/protocols/ICQCorp/src/services.cpp index 939fc619fc..e97dca0e4f 100644 --- a/protocols/ICQCorp/src/services.cpp +++ b/protocols/ICQCorp/src/services.cpp @@ -276,7 +276,7 @@ static INT_PTR icqSetAwayMsg(WPARAM wParam, LPARAM lParam) if (icq.awayMessage) delete [] icq.awayMessage;
icq.awayMessage = new char[mir_strlen((char*)lParam) + 1];
- strcpy(icq.awayMessage, (char*)lParam);
+ mir_strcpy(icq.awayMessage, (char*)lParam);
return 0;
}
@@ -347,7 +347,7 @@ static INT_PTR icqSendFile(WPARAM wParam, LPARAM lParam) if (filesCount == 1)
{
char *p = strrchr(files[0], '\\');
- strcpy(filename, p ? p+1 : files[0]);
+ mir_strcpy(filename, p ? p+1 : files[0]);
}
else sprintf(filename, filesCount == 1 ? Translate("%d file") : Translate("%d files"), filesCount);
}
@@ -526,7 +526,7 @@ static int icqModulesLoaded(WPARAM wParam, LPARAM lParam) char *CreateServiceName(char *serviceName, char *functionName)
{
- strcpy(serviceName, protoName);
+ mir_strcpy(serviceName, protoName);
strcat(serviceName, functionName);
return serviceName;
diff --git a/protocols/ICQCorp/src/transfer.cpp b/protocols/ICQCorp/src/transfer.cpp index a16369bd67..c864c6b3e9 100644 --- a/protocols/ICQCorp/src/transfer.cpp +++ b/protocols/ICQCorp/src/transfer.cpp @@ -397,7 +397,7 @@ void ICQTransfer::resume(int action, const char *newName) T("[ ] rename file\n");
delete [] fileName;
fileName = new char[mir_strlen(newName) + 1];
- strcpy(fileName, newName);
+ mir_strcpy(fileName, newName);
files[current] = fileName;
openFile();
|