summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/typingnotify.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/typingnotify.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/typingnotify.cpp')
-rw-r--r--plugins/TabSRMM/src/typingnotify.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/TabSRMM/src/typingnotify.cpp b/plugins/TabSRMM/src/typingnotify.cpp
index 51a6d33086..414636501e 100644
--- a/plugins/TabSRMM/src/typingnotify.cpp
+++ b/plugins/TabSRMM/src/typingnotify.cpp
@@ -115,16 +115,16 @@ void TN_TypingMessage(MCONTACT hContact, int iMode)
if (iMode == PROTOTYPE_CONTACTTYPING_OFF) {
if (StopDisabled)
return;
- mir_tstrncpy(ppd.lptzContactName, szContactName, MAX_CONTACTNAME);
- mir_tstrncpy(ppd.lptzText, szStop, MAX_SECONDLINE);
+ _tcsncpy_s(ppd.lptzContactName, szContactName, _TRUNCATE);
+ _tcsncpy_s(ppd.lptzText, szStop, _TRUNCATE);
ppd.hNotification = hntfStopped;
notyping = 1;
}
else {
if (StartDisabled)
return;
- mir_tstrncpy(ppd.lptzContactName, szContactName, MAX_CONTACTNAME);
- mir_tstrncpy(ppd.lptzText, szStart, MAX_SECONDLINE);
+ _tcsncpy_s(ppd.lptzContactName, szContactName, _TRUNCATE);
+ _tcsncpy_s(ppd.lptzText, szStart, _TRUNCATE);
ppd.hNotification = hntfStarted;
notyping = 0;
}
@@ -307,13 +307,13 @@ static INT_PTR CALLBACK DlgProcOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA
for (i=0; i < 2; i++) {
int notyping;
if (i == PROTOTYPE_CONTACTTYPING_OFF) {
- mir_tstrcpy(ppd.lptzContactName, TranslateT("Contact"));
- mir_tstrncpy(ppd.lptzText, szStop, MAX_SECONDLINE);
+ _tcsncpy_s(ppd.lptzContactName, TranslateT("Contact"), _TRUNCATE);
+ _tcsncpy_s(ppd.lptzText, szStop, _TRUNCATE);
notyping = 1;
}
else {
- mir_tstrcpy(ppd.lptzContactName, TranslateT("Contact"));
- mir_tstrncpy(ppd.lptzText, szStart, MAX_SECONDLINE);
+ _tcsncpy_s(ppd.lptzContactName, TranslateT("Contact"), _TRUNCATE);
+ _tcsncpy_s(ppd.lptzText, szStart, _TRUNCATE);
notyping = 0;
}