diff options
author | George Hazan <ghazan@miranda.im> | 2018-07-27 15:28:30 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-07-27 15:28:38 +0300 |
commit | fc03dc9109a6a38dee7c526d757246ef942e9e32 (patch) | |
tree | 9049f48ca669070693ad824ea42eb8f42a0245e8 /plugins/Clist_modern/src/modern_clcutils.cpp | |
parent | 41b76c95667b7f6b27e53486e0df722d51c0a3ec (diff) |
Clist_Modern:
- fixes #1518 (clist_modern account panel filter logic);
- code cleaning
Diffstat (limited to 'plugins/Clist_modern/src/modern_clcutils.cpp')
-rw-r--r-- | plugins/Clist_modern/src/modern_clcutils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Clist_modern/src/modern_clcutils.cpp b/plugins/Clist_modern/src/modern_clcutils.cpp index aeb2aca4bf..2aaabf8900 100644 --- a/plugins/Clist_modern/src/modern_clcutils.cpp +++ b/plugins/Clist_modern/src/modern_clcutils.cpp @@ -564,7 +564,7 @@ void cli_LoadCLCOptions(HWND hwnd, ClcData *dat, BOOL bFirst) ptrW tszLineText(db_get_wsa(0, "CList", "SecondLineText"));
if (tszLineText)
- mir_wstrncpy(dat->secondLine.text, tszLineText, _countof(dat->secondLine.text));
+ wcsncpy_s(dat->secondLine.text, tszLineText, _TRUNCATE);
else
dat->secondLine.text[0] = '\0';
@@ -584,7 +584,7 @@ void cli_LoadCLCOptions(HWND hwnd, ClcData *dat, BOOL bFirst) ptrW tszLineText(db_get_wsa(0, "CList", "ThirdLineText"));
if (tszLineText)
- mir_wstrncpy(dat->thirdLine.text, tszLineText, _countof(dat->thirdLine.text));
+ wcsncpy_s(dat->thirdLine.text, tszLineText, _TRUNCATE);
else
dat->thirdLine.text[0] = '\0';
|