diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-24 12:35:03 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-24 12:35:03 +0000 |
commit | ee697e0b699bcefec907c089e3ad455538c72c2f (patch) | |
tree | 030a675c2c93dc8b34a13b7fc9a3bea7477d84ba /src/modules/protocols | |
parent | 5aed15a8d8d8e4f913539761be496e0d1ba2c4f0 (diff) |
replace wcscpy to mir_wstrcpy
replace wcscat to mir_wstrcat
replace wcsncat to mir_wstrncat
replace wcscmp to mir_wstrcmp
replace wcsicmp to mir_wstrcmpi
git-svn-id: http://svn.miranda-ng.org/main/trunk@13814 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/protocols')
-rw-r--r-- | src/modules/protocols/protoaccs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/protocols/protoaccs.cpp b/src/modules/protocols/protoaccs.cpp index 9dd7e5f9ee..4e863b235f 100644 --- a/src/modules/protocols/protoaccs.cpp +++ b/src/modules/protocols/protoaccs.cpp @@ -394,7 +394,7 @@ static INT_PTR stub43(PROTO_INTERFACE* ppi, WPARAM wParam, LPARAM lParam) p->format = tmp.format;
wchar_t filename[MAX_PATH];
- wcscpy(filename, tmp.filename);
+ mir_wstrcpy(filename, tmp.filename);
GetShortPathNameW(tmp.filename, filename, SIZEOF(filename));
WideCharToMultiByte(CP_ACP, 0, filename, -1, p->filename, MAX_PATH, 0, 0);
@@ -407,7 +407,7 @@ static INT_PTR stub44(PROTO_INTERFACE* ppi, WPARAM wParam, LPARAM lParam) int result = CallProtoServiceInt(NULL, ppi->m_szModuleName, PS_GETMYAVATARW, WPARAM(buf), lParam);
if (result == 0) {
wchar_t* filename = (wchar_t*)_alloca(sizeof(wchar_t) * (lParam + 1));
- wcscpy(filename, buf);
+ mir_wstrcpy(filename, buf);
GetShortPathNameW(buf, filename, lParam + 1);
WideCharToMultiByte(CP_ACP, 0, filename, -1, (char*)wParam, lParam, 0, 0);
|