From 2a815f8820ca402626bd283dd5b75744ddeb9812 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 23 May 2015 18:55:59 +0000 Subject: mir_tstrncpy <> _tcsncpy git-svn-id: http://svn.miranda-ng.org/main/trunk@13791 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Weather/src/weather_popup.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/Weather/src/weather_popup.cpp') diff --git a/plugins/Weather/src/weather_popup.cpp b/plugins/Weather/src/weather_popup.cpp index 9abcac9dda..17ab3696c8 100644 --- a/plugins/Weather/src/weather_popup.cpp +++ b/plugins/Weather/src/weather_popup.cpp @@ -79,8 +79,8 @@ int WeatherError(WPARAM wParam, LPARAM lParam) TCHAR str1[512], str2[512]; // get the 2 strings - mir_tstrncpy(str1, tszMsg, SIZEOF(str1) - 1); - mir_tstrncpy(str2, tszMsg, SIZEOF(str2) - 1); + _tcsncpy(str1, tszMsg, SIZEOF(str1) - 1); + _tcsncpy(str2, tszMsg, SIZEOF(str2) - 1); TCHAR *chop = _tcschr(str1, 255); if (chop != NULL) *chop = '\0'; @@ -88,7 +88,7 @@ int WeatherError(WPARAM wParam, LPARAM lParam) str1[0] = 0; chop = _tcschr(str2, 255); if (chop != NULL) - mir_tstrncpy(str2, chop+1, SIZEOF(str2) - 1); + _tcsncpy(str2, chop+1, SIZEOF(str2) - 1); else str2[0] = 0; @@ -396,7 +396,7 @@ INT_PTR CALLBACK DlgPopupOpts(HWND hdlg, UINT msg, WPARAM wParam, LPARAM lParam) case IDC_VAR3: // display variable list - mir_tstrncpy(str, _T(" \n"),SIZEOF(str) - 1); // to make the message box wider + _tcsncpy(str, _T(" \n"),SIZEOF(str) - 1); // to make the message box wider mir_tstrncat(str, VAR_LIST_POPUP, SIZEOF(str) - mir_tstrlen(str)); mir_tstrncat(str, _T("\n"), SIZEOF(str) - mir_tstrlen(str)); mir_tstrncat(str, CUSTOM_VARS, SIZEOF(str) - mir_tstrlen(str)); -- cgit v1.2.3