From 46789bd14d5fc7448dbd1b68138a8b08964353bc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 30 Nov 2014 13:03:10 +0000 Subject: 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 --- plugins/UserInfoEx/src/svc_refreshci.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/UserInfoEx/src/svc_refreshci.cpp') diff --git a/plugins/UserInfoEx/src/svc_refreshci.cpp b/plugins/UserInfoEx/src/svc_refreshci.cpp index 3fbbd3d2f9..dd3246d2b7 100644 --- a/plugins/UserInfoEx/src/svc_refreshci.cpp +++ b/plugins/UserInfoEx/src/svc_refreshci.cpp @@ -143,7 +143,7 @@ public: { if (szText) { - INT_PTR cch = mir_tcslen(szText); + INT_PTR cch = mir_tstrlen(szText); LPTSTR fmt = (LPTSTR) mir_alloc((cch + 1) * sizeof(TCHAR)); if (fmt) @@ -352,12 +352,12 @@ class CPopupUpdProgress : public CUpdProgress { if (_szText) { - INT_PTR cb = mir_tcslen(_szText) + 8; + INT_PTR cb = mir_tstrlen(_szText) + 8; LPTSTR pb = (LPTSTR) mir_alloc(cb * sizeof(TCHAR)); if (pb) { - mir_tcscpy(pb, _szText); + mir_tstrcpy(pb, _szText); SendMessage(_hWnd, UM_CHANGEPOPUP, CPT_TITLET, (LPARAM) pb); } @@ -431,8 +431,8 @@ public: pd.lpActions = _popupButtons; // dummy text - _szText = mir_tcsdup(szTitle); - mir_tcscpy(pd.lptzContactName, _szText); + _szText = mir_tstrdup(szTitle); + mir_tstrcpy(pd.lptzContactName, _szText); _tcscpy(pd.lptzText, _T(" ")); @@ -462,7 +462,7 @@ public: virtual void SetTitle(LPCTSTR szText) { MIR_FREE(_szText); - _szText = mir_tcsdup(szText); + _szText = mir_tstrdup(szText); UpdateText(); } @@ -472,7 +472,7 @@ public: **/ virtual void SetText(LPCTSTR szText) { - SendMessage(_hWnd, UM_CHANGEPOPUP, CPT_TEXTT, (LPARAM) mir_tcsdup(szText)); + SendMessage(_hWnd, UM_CHANGEPOPUP, CPT_TEXTT, (LPARAM) mir_tstrdup(szText)); } }; -- cgit v1.2.3