summaryrefslogtreecommitdiff
path: root/plugins/Weather/src/weather_popup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Weather/src/weather_popup.cpp')
-rw-r--r--plugins/Weather/src/weather_popup.cpp8
1 files changed, 4 insertions, 4 deletions
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));