summaryrefslogtreecommitdiff
path: root/plugins/Weather/src/weather_popup.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-16 19:04:12 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-16 19:04:12 +0000
commitc49014bbfa57191cd4c52be5d01690a6eef778ac (patch)
treee948c5874557e516821b1e16805bd1a779f60a0a /plugins/Weather/src/weather_popup.cpp
parent3c3d8be323e6630c28c2dac6e0e851bce4b02130 (diff)
fix for strncat use
git-svn-id: http://svn.miranda-ng.org/main/trunk@13650 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Weather/src/weather_popup.cpp')
-rw-r--r--plugins/Weather/src/weather_popup.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Weather/src/weather_popup.cpp b/plugins/Weather/src/weather_popup.cpp
index b8b6a326f8..050f0e01c4 100644
--- a/plugins/Weather/src/weather_popup.cpp
+++ b/plugins/Weather/src/weather_popup.cpp
@@ -397,9 +397,9 @@ INT_PTR CALLBACK DlgPopupOpts(HWND hdlg, UINT msg, WPARAM wParam, LPARAM lParam)
case IDC_VAR3:
// display variable list
_tcsncpy(str, _T(" \n"),SIZEOF(str) - 1); // to make the message box wider
- _tcsncat(str, VAR_LIST_POPUP, SIZEOF(str) - 1);
- _tcsncat(str, _T("\n"),SIZEOF(str) - 1);
- _tcsncat(str, CUSTOM_VARS,SIZEOF(str) - 1);
+ _tcsncat(str, VAR_LIST_POPUP, SIZEOF(str) - mir_tstrlen(str));
+ _tcsncat(str, _T("\n"), SIZEOF(str) - mir_tstrlen(str));
+ _tcsncat(str, CUSTOM_VARS, SIZEOF(str) - mir_tstrlen(str));
MessageBox(NULL, str, TranslateT("Variable List"), MB_OK|MB_ICONASTERISK|MB_TOPMOST);
break;