summaryrefslogtreecommitdiff
path: root/plugins/TipperYM/src/popwin.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-05-23 18:55:59 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-05-23 18:55:59 +0000
commit2a815f8820ca402626bd283dd5b75744ddeb9812 (patch)
treeb230e7ac7d0330f5a1a0c8891d0a7dda9c5b47c6 /plugins/TipperYM/src/popwin.cpp
parent9a177a4e355c52775b580ad5687db2120f9282d5 (diff)
mir_tstrncpy <> _tcsncpy
git-svn-id: http://svn.miranda-ng.org/main/trunk@13791 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TipperYM/src/popwin.cpp')
-rw-r--r--plugins/TipperYM/src/popwin.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/TipperYM/src/popwin.cpp b/plugins/TipperYM/src/popwin.cpp
index 24377573bf..1396836639 100644
--- a/plugins/TipperYM/src/popwin.cpp
+++ b/plugins/TipperYM/src/popwin.cpp
@@ -314,7 +314,7 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa
db_unset(pwd->hContact, MODULE, "TempStatusMsg");
TCHAR *swzNick = pcli->pfnGetContactDisplayName(pwd->hContact, 0);
- mir_tstrncpy(pwd->swzTitle, swzNick, TITLE_TEXT_LEN);
+ _tcsncpy(pwd->swzTitle, swzNick, TITLE_TEXT_LEN);
char *szProto = GetContactProto(pwd->hContact);
pwd->spiTitle = Smileys_PreParse(pwd->swzTitle, -1, szProto);
@@ -338,9 +338,9 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa
if (iXstatus) {
char szIconProto[64];
if (mir_strcmp(szProto, META_PROTO) != 0)
- mir_strncpy(szIconProto, szProto, sizeof(szIconProto) - 1);
+ strncpy(szIconProto, szProto, sizeof(szIconProto) - 1);
else if (!db_get_s(pwd->hContact, szProto, "XStatusProto", &dbv)) {
- mir_strncpy(szIconProto, dbv.pszVal, sizeof(szIconProto) - 1);
+ strncpy(szIconProto, dbv.pszVal, sizeof(szIconProto) - 1);
db_free(&dbv);
}
@@ -775,7 +775,7 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa
int iLen = (int)mir_tstrlen(pwd->rows[i].swzValue);
if (iLen) {
if (iLen > MAX_VALUE_LEN) {
- mir_tstrncpy(buff, pwd->rows[i].swzValue, MAX_VALUE_LEN);
+ _tcsncpy(buff, pwd->rows[i].swzValue, MAX_VALUE_LEN);
buff[MAX_VALUE_LEN] = 0;
mir_tstrcat(buff, _T("..."));
}