diff options
author | George Hazan <george.hazan@gmail.com> | 2014-11-30 13:03:10 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-11-30 13:03:10 +0000 |
commit | 46789bd14d5fc7448dbd1b68138a8b08964353bc (patch) | |
tree | 27851079c9870206fe7ccb9e2248dff8ff550af2 /plugins/UserInfoEx/src/classPsTreeItem.cpp | |
parent | 1f91ea192b7cbc5265e9bca4c69fcbc157402cfa (diff) |
safe lstr* replacements: mir_strlen, mir_wstrlen, mir_strcpy, mir_wstrcpy,
mir_strncpy, mir_wstrncpy, mir_strcat, mir_wstrcat, mir_strncat, mir_wstrncat
git-svn-id: http://svn.miranda-ng.org/main/trunk@11171 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/UserInfoEx/src/classPsTreeItem.cpp')
-rw-r--r-- | plugins/UserInfoEx/src/classPsTreeItem.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/UserInfoEx/src/classPsTreeItem.cpp b/plugins/UserInfoEx/src/classPsTreeItem.cpp index 602557707a..2969b61fd5 100644 --- a/plugins/UserInfoEx/src/classPsTreeItem.cpp +++ b/plugins/UserInfoEx/src/classPsTreeItem.cpp @@ -215,7 +215,7 @@ BYTE CPsTreeItem::HasName(const LPCSTR pszName) const void CPsTreeItem::Rename(const LPTSTR pszLabel)
{
if (pszLabel && *pszLabel) {
- LPTSTR pszDup = mir_tcsdup(pszLabel);
+ LPTSTR pszDup = mir_tstrdup(pszLabel);
if (pszDup) {
replaceStrT(_ptszLabel, pszDup);
// convert disallowed characters
@@ -257,7 +257,7 @@ int CPsTreeItem::ItemLabel(const BYTE bReadDBValue) LPTSTR ptszLabel = mir_utf8decodeT(pszName);
if (ptszLabel) {
- _ptszLabel = mir_tcsdup(TranslateTS(ptszLabel));
+ _ptszLabel = mir_tstrdup(TranslateTS(ptszLabel));
mir_free(ptszLabel);
}
}
@@ -279,7 +279,7 @@ HICON CPsTreeItem::ProtoIcon() if (!CallService(MS_PROTO_ENUMACCOUNTS, (WPARAM)&ProtoCount, (LPARAM)&pa)) {
if (_pszName) {
for (int i = 0; i < ProtoCount; i++) {
- if (!mir_tcsnicmp(pa[i]->tszAccountName, _A2T(_pszName), mir_tcslen(pa[i]->tszAccountName))) {
+ if (!mir_tcsnicmp(pa[i]->tszAccountName, _A2T(_pszName), mir_tstrlen(pa[i]->tszAccountName))) {
CHAR szIconID[MAX_PATH];
mir_snprintf(szIconID, SIZEOF(szIconID), "core_status_%s1", pa[i]->szModuleName);
HICON hIco = Skin_GetIcon(szIconID);
@@ -416,7 +416,7 @@ int CPsTreeItem::Create(CPsHdr* pPsh, OPTIONSDIALOGPAGE *odp) if (_dwFlags & ODPF_USERINFOTAB)
mir_sntprintf(szTitle, SIZEOF(szTitle), _T("%s\\%s"), odp->ptszTitle, odp->ptszTab);
else
- mir_tcscpy(szTitle, odp->ptszTitle);
+ mir_tstrcpy(szTitle, odp->ptszTitle);
}
// set the unique utf8 encoded name for the item
if (err = Name(szTitle, (_dwFlags & ODPF_UNICODE) == ODPF_UNICODE))
|