summaryrefslogtreecommitdiff
path: root/plugins/TipperYM
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TipperYM')
-rw-r--r--plugins/TipperYM/src/options.cpp8
-rw-r--r--plugins/TipperYM/src/popwin.cpp20
-rw-r--r--plugins/TipperYM/src/subst.cpp2
3 files changed, 15 insertions, 15 deletions
diff --git a/plugins/TipperYM/src/options.cpp b/plugins/TipperYM/src/options.cpp
index 6c0721926e..85ca77b699 100644
--- a/plugins/TipperYM/src/options.cpp
+++ b/plugins/TipperYM/src/options.cpp
@@ -2042,8 +2042,8 @@ INT_PTR CALLBACK DlgProcOptsTraytip(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA
while (item.hItem != NULL) {
TreeView_GetItem(GetDlgItem(hwndDlg, IDC_TREE_FIRST_PROTOS), &item);
if (((item.state & TVIS_STATEIMAGEMASK) >> 12) == 2) {
- _tcscat(swzProtos, buff);
- _tcscat(swzProtos, _T(" "));
+ mir_tstrcat(swzProtos, buff);
+ mir_tstrcat(swzProtos, _T(" "));
}
item.hItem = TreeView_GetNextSibling(GetDlgItem(hwndDlg, IDC_TREE_FIRST_PROTOS), item.hItem);
@@ -2057,8 +2057,8 @@ INT_PTR CALLBACK DlgProcOptsTraytip(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA
while (item.hItem != NULL) {
TreeView_GetItem(GetDlgItem(hwndDlg, IDC_TREE_SECOND_PROTOS), &item);
if (((item.state & TVIS_STATEIMAGEMASK) >> 12) == 2) {
- _tcscat(swzProtos, buff);
- _tcscat(swzProtos, _T(" "));
+ mir_tstrcat(swzProtos, buff);
+ mir_tstrcat(swzProtos, _T(" "));
}
item.hItem = TreeView_GetNextSibling(GetDlgItem(hwndDlg, IDC_TREE_SECOND_PROTOS), item.hItem);
diff --git a/plugins/TipperYM/src/popwin.cpp b/plugins/TipperYM/src/popwin.cpp
index 405df12768..1396836639 100644
--- a/plugins/TipperYM/src/popwin.cpp
+++ b/plugins/TipperYM/src/popwin.cpp
@@ -100,7 +100,7 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa
// uid info
TCHAR swzUid[256], swzUidName[256];
if (Uid(0, pwd->clcit.szProto, swzUid, 256) && UidName(pwd->clcit.szProto, swzUidName, 253)) {
- _tcscat(swzUidName, _T(": "));
+ mir_tstrcat(swzUidName, _T(": "));
AddRow(pwd, swzUidName, swzUid, NULL, false, false, false);
}
@@ -777,7 +777,7 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa
if (iLen > MAX_VALUE_LEN) {
_tcsncpy(buff, pwd->rows[i].swzValue, MAX_VALUE_LEN);
buff[MAX_VALUE_LEN] = 0;
- _tcscat(buff, _T("..."));
+ mir_tstrcat(buff, _T("..."));
}
else mir_tstrcpy(buff, pwd->rows[i].swzValue);
@@ -829,25 +829,25 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa
for (int i = 0; i < pwd->iRowCount; i++) {
if ((pwd->rows[i].swzLabel && pwd->rows[i].swzLabel[0]) || (pwd->rows[i].swzValue && pwd->rows[i].swzValue[0])) {
if (pwd->rows[i].swzLabel && pwd->rows[i].swzLabel[0]) {
- _tcscat(pchData, pwd->rows[i].swzLabel);
- _tcscat(pchData, _T(" "));
+ mir_tstrcat(pchData, pwd->rows[i].swzLabel);
+ mir_tstrcat(pchData, _T(" "));
}
- else _tcscat(pchData, TranslateT("<No Label>: "));
+ else mir_tstrcat(pchData, TranslateT("<No Label>: "));
if (pwd->rows[i].swzValue && pwd->rows[i].swzValue[0])
- _tcscat(pchData, pwd->rows[i].swzValue);
+ mir_tstrcat(pchData, pwd->rows[i].swzValue);
else
- _tcscat(pchData, TranslateT("<No Value>"));
+ mir_tstrcat(pchData, TranslateT("<No Value>"));
- _tcscat(pchData, _T("\r\n"));
+ mir_tstrcat(pchData, _T("\r\n"));
}
}
}
else if (iSelItem == COPYMENU_ALLITEMS) { // copy all items
for (int i = 0; i < pwd->iRowCount; i++) {
if (pwd->rows[i].swzValue && pwd->rows[i].swzValue[0]) {
- _tcscat(pchData, pwd->rows[i].swzValue);
- _tcscat(pchData, _T("\r\n"));
+ mir_tstrcat(pchData, pwd->rows[i].swzValue);
+ mir_tstrcat(pchData, _T("\r\n"));
}
}
}
diff --git a/plugins/TipperYM/src/subst.cpp b/plugins/TipperYM/src/subst.cpp
index 4f3c68f376..998694c0e6 100644
--- a/plugins/TipperYM/src/subst.cpp
+++ b/plugins/TipperYM/src/subst.cpp
@@ -682,7 +682,7 @@ void TruncateString(TCHAR *swzText)
if (swzText && opt.iLimitCharCount > 3) {
if ((int)mir_tstrlen(swzText) > opt.iLimitCharCount) {
swzText[opt.iLimitCharCount - 3] = 0;
- _tcscat(swzText, _T("..."));
+ mir_tstrcat(swzText, _T("..."));
}
}
}