From 9cadeadaff74b37df1c2896e653a80b3ce4c86f6 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 23 May 2015 18:08:26 +0000 Subject: replace _tcsncpy to mir_tstrncpy git-svn-id: http://svn.miranda-ng.org/main/trunk@13786 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Weather/src/weather_contacts.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/Weather/src/weather_contacts.cpp') diff --git a/plugins/Weather/src/weather_contacts.cpp b/plugins/Weather/src/weather_contacts.cpp index 5eec260dd7..947378c026 100644 --- a/plugins/Weather/src/weather_contacts.cpp +++ b/plugins/Weather/src/weather_contacts.cpp @@ -293,15 +293,15 @@ INT_PTR CALLBACK DlgProcChange(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPa ofn.lpstrFile = str; ofn.nMaxFile = SIZEOF(str); // set filters - _tcsncpy(filter, TranslateT("Text Files"), SIZEOF(filter) - 1); + mir_tstrncpy(filter, TranslateT("Text Files"), SIZEOF(filter) - 1); mir_tstrncat(filter, _T(" (*.txt)"), SIZEOF(filter) - mir_tstrlen(filter)); pfilter = filter + mir_tstrlen(filter)+1; - _tcsncpy(pfilter, _T("*.txt"), SIZEOF(filter) - 1); + mir_tstrncpy(pfilter, _T("*.txt"), SIZEOF(filter) - 1); pfilter = pfilter + mir_tstrlen(pfilter)+1; - _tcsncpy(pfilter, TranslateT("All Files"), SIZEOF(filter) - 1); + mir_tstrncpy(pfilter, TranslateT("All Files"), SIZEOF(filter) - 1); mir_tstrncat(pfilter, _T(" (*.*)"), SIZEOF(filter) - mir_tstrlen(filter)); pfilter = pfilter + mir_tstrlen(pfilter)+1; - _tcsncpy(pfilter, _T("*.*"), SIZEOF(filter) - 1); + mir_tstrncpy(pfilter, _T("*.*"), SIZEOF(filter) - 1); pfilter = pfilter + mir_tstrlen(pfilter)+1; *pfilter = '\0'; ofn.lpstrFilter = filter; @@ -452,7 +452,7 @@ int ContactDeleted(WPARAM wParam, LPARAM lParam) // if the station is not a default station, set it as the new default station // this is the first weather station encountered from the search if ( mir_tstrcmp(opt.Default, dbv.ptszVal)) { - _tcsncpy(opt.Default, dbv.ptszVal, SIZEOF(opt.Default) - 1); + mir_tstrncpy(opt.Default, dbv.ptszVal, SIZEOF(opt.Default) - 1); opt.DefStn = hContact; db_free(&dbv); if ( !db_get_ts(hContact, WEATHERPROTONAME, "Nick", &dbv)) { -- cgit v1.2.3