diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-02-05 20:41:03 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-02-05 20:41:03 +0000 |
commit | e9b379bc27f64fc5d31fd894c95a1da5a18f1795 (patch) | |
tree | cc530448e2c29f256c45549d27e8fd3ea2adf4ad /plugins/Weather/src/weather_contacts.cpp | |
parent | 96d3720a8b42bdd4e2595b57a725930289dc791f (diff) |
Weather: Minor fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@12012 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Weather/src/weather_contacts.cpp')
-rw-r--r-- | plugins/Weather/src/weather_contacts.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Weather/src/weather_contacts.cpp b/plugins/Weather/src/weather_contacts.cpp index 1edd2aae99..31ed3ef939 100644 --- a/plugins/Weather/src/weather_contacts.cpp +++ b/plugins/Weather/src/weather_contacts.cpp @@ -294,15 +294,15 @@ INT_PTR CALLBACK DlgProcChange(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPa ofn.lpstrFile = str;
ofn.nMaxFile = SIZEOF(str);
// set filters
- _tcscpy(filter, TranslateT("Text Files"));
- _tcscat(filter, _T(" (*.txt)"));
+ _tcsncpy(filter, TranslateT("Text Files"), SIZEOF(filter));
+ _tcsncat(filter, _T(" (*.txt)"), SIZEOF(filter));
pfilter = filter + _tcslen(filter)+1;
- _tcscpy(pfilter, _T("*.txt"));
+ _tcsncpy(pfilter, _T("*.txt"), SIZEOF(filter));
pfilter = pfilter + _tcslen(pfilter)+1;
- _tcscpy(pfilter, TranslateT("All Files"));
- _tcscat(pfilter, _T(" (*.*)"));
+ _tcsncpy(pfilter, TranslateT("All Files"), SIZEOF(filter));
+ _tcsncat(pfilter, _T(" (*.*)"), SIZEOF(filter));
pfilter = pfilter + _tcslen(pfilter)+1;
- _tcscpy(pfilter, _T("*.*"));
+ _tcsncpy(pfilter, _T("*.*"), SIZEOF(filter));
pfilter = pfilter + _tcslen(pfilter)+1;
*pfilter = '\0';
ofn.lpstrFilter = filter;
|