diff options
author | Mataes <mataes2007@gmail.com> | 2018-03-11 20:39:44 +0300 |
---|---|---|
committer | Mataes <mataes2007@gmail.com> | 2018-03-11 20:39:44 +0300 |
commit | 30b4b861bc47eab24d3236879d50791871d5c90a (patch) | |
tree | 4d1179f2d1d410f45f0e421051e557b34abd3bf5 /plugins/ChangeKeyboardLayout | |
parent | 39c12960ef8238ea09daa233706e522b83bf36ec (diff) |
ChangeLayout: mir_strcpy and mir_strcat replaced on strncpy_s and strncat_s
Diffstat (limited to 'plugins/ChangeKeyboardLayout')
-rw-r--r-- | plugins/ChangeKeyboardLayout/src/hook_events.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ChangeKeyboardLayout/src/hook_events.cpp b/plugins/ChangeKeyboardLayout/src/hook_events.cpp index 77917a3851..ab73812bd7 100644 --- a/plugins/ChangeKeyboardLayout/src/hook_events.cpp +++ b/plugins/ChangeKeyboardLayout/src/hook_events.cpp @@ -76,8 +76,8 @@ void RegPopupActions() {
if (ServiceExists(MS_POPUP_ADDPOPUPT)) {
poOptions.paActions[0].cbSize = sizeof(POPUPACTION);
- mir_strcpy(poOptions.paActions[0].lpzTitle, ModuleName);
- mir_strcat(poOptions.paActions[0].lpzTitle, "/Copy to clipboard");
+ strncpy_s(poOptions.paActions[0].lpzTitle, ModuleName, _TRUNCATE);
+ strncat_s(poOptions.paActions[0].lpzTitle, _countof(poOptions.paActions[0].lpzTitle), "/Copy to clipboard", _TRUNCATE);
poOptions.paActions[0].flags = PAF_ENABLED;
poOptions.paActions[0].wParam = poOptions.paActions[0].lParam = 0;
poOptions.paActions[0].lchIcon = hCopyIcon;
|