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 /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 'protocols')
-rw-r--r-- | protocols/IcqOscarJ/src/icq_xstatus.cpp | 4 | ||||
-rw-r--r-- | protocols/MSN/src/msn_mime.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/protocols/IcqOscarJ/src/icq_xstatus.cpp b/protocols/IcqOscarJ/src/icq_xstatus.cpp index 1b1133c447..a469c5ea39 100644 --- a/protocols/IcqOscarJ/src/icq_xstatus.cpp +++ b/protocols/IcqOscarJ/src/icq_xstatus.cpp @@ -1003,7 +1003,7 @@ INT_PTR CIcqProto::GetXStatusEx(WPARAM hContact, LPARAM lParam) char *str = getSettingStringUtf(hContact, DBSETTING_XSTATUS_NAME, "");
WCHAR *wstr = make_unicode_string(str);
- wcscpy(pData->pwszName, wstr);
+ mir_wstrcpy(pData->pwszName, wstr);
SAFE_FREE(&str);
SAFE_FREE(&wstr);
}
@@ -1023,7 +1023,7 @@ INT_PTR CIcqProto::GetXStatusEx(WPARAM hContact, LPARAM lParam) char *str = getSettingStringUtf(hContact, CheckContactCapabilities(hContact, CAPF_STATUS_MOOD) ? DBSETTING_STATUS_NOTE : DBSETTING_XSTATUS_MSG, "");
WCHAR *wstr = make_unicode_string(str);
- wcscpy(pData->pwszMessage, wstr);
+ mir_wstrcpy(pData->pwszMessage, wstr);
SAFE_FREE(&str);
SAFE_FREE(&wstr);
}
diff --git a/protocols/MSN/src/msn_mime.cpp b/protocols/MSN/src/msn_mime.cpp index 7c3274e6cf..9d70aeba6e 100644 --- a/protocols/MSN/src/msn_mime.cpp +++ b/protocols/MSN/src/msn_mime.cpp @@ -392,7 +392,7 @@ static size_t utf8toutf16(char* str, wchar_t* res) {
wchar_t *dec = mir_utf8decodeW(str);
if (dec == NULL) dec = mir_a2u(str);
- wcscpy(res, dec);
+ mir_wstrcpy(res, dec);
mir_free(dec);
return mir_wstrlen(res);
}
|