summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/generic_msghandlers.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-12-01 23:27:22 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-12-01 23:27:22 +0000
commit15b4d00e919d97015c208fff867862ef028995de (patch)
tree153c71d62dac1a17eaf469f52a6c2dfe9f7a28ae /plugins/TabSRMM/src/generic_msghandlers.cpp
parentcc15bc68febf4de6cd357ea9192de2e876ab290e (diff)
static mir_tstrncpy replaced with direct _tcsncpy_s calls
git-svn-id: http://svn.miranda-ng.org/main/trunk@11209 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/generic_msghandlers.cpp')
-rw-r--r--plugins/TabSRMM/src/generic_msghandlers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/generic_msghandlers.cpp b/plugins/TabSRMM/src/generic_msghandlers.cpp
index 14b48c5ec0..698704de1b 100644
--- a/plugins/TabSRMM/src/generic_msghandlers.cpp
+++ b/plugins/TabSRMM/src/generic_msghandlers.cpp
@@ -1763,7 +1763,7 @@ void TSAPI DM_UpdateTitle(TWindowData *dat, WPARAM wParam, LPARAM lParam)
if (PluginConfig.m_CutContactNameOnTabs)
CutContactName(szNick, newcontactname, SIZEOF(newcontactname));
else
- mir_tstrncpy(newcontactname, szNick, SIZEOF(newcontactname));
+ _tcsncpy_s(newcontactname, szNick, _TRUNCATE);
Utils::DoubleAmpersands(newcontactname);
@@ -1792,7 +1792,7 @@ void TSAPI DM_UpdateTitle(TWindowData *dat, WPARAM wParam, LPARAM lParam)
SendMessage(GetDlgItem(hwndDlg, IDC_NAME), BUTTONADDTOOLTIP, (WPARAM)fulluin, BATF_TCHAR);
}
}
- else mir_tstrncpy(newtitle, _T("Message Session"), SIZEOF(newtitle));
+ else _tcsncpy_s(newtitle, _T("Message Session"), _TRUNCATE);
if (dat->idle != dwOldIdle || lParam != 0) {
if (item.mask & TCIF_TEXT) {