diff options
author | Mataes <mataes2007@gmail.com> | 2018-03-11 20:24:17 +0300 |
---|---|---|
committer | Mataes <mataes2007@gmail.com> | 2018-03-11 20:24:17 +0300 |
commit | 39c12960ef8238ea09daa233706e522b83bf36ec (patch) | |
tree | 8aff51ea7f3c233c3896283cd8877d8e05ba4810 /plugins/BuddyExpectator | |
parent | c3d846f6cb7f8013d9ff95b302f16742b6e18790 (diff) |
BuddyExpectator: use strncpy_s instead of mir_strcpy
Diffstat (limited to 'plugins/BuddyExpectator')
-rw-r--r-- | plugins/BuddyExpectator/src/BuddyExpectator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/BuddyExpectator/src/BuddyExpectator.cpp b/plugins/BuddyExpectator/src/BuddyExpectator.cpp index 23ff90150d..00dbf156fe 100644 --- a/plugins/BuddyExpectator/src/BuddyExpectator.cpp +++ b/plugins/BuddyExpectator/src/BuddyExpectator.cpp @@ -617,17 +617,17 @@ int ModulesLoaded(WPARAM, LPARAM) missyouactions[0].cbSize = sizeof(POPUPACTION);
missyouactions[0].lchIcon = IcoLib_GetIcon("disabled_icon");
- mir_strcpy(missyouactions[0].lpzTitle, LPGEN("Disable Miss You"));
+ strncpy_s(missyouactions[0].lpzTitle, LPGEN("Disable Miss You"), _TRUNCATE);
missyouactions[0].wParam = missyouactions[0].lParam = 1;
hideactions[0].cbSize = sizeof(POPUPACTION);
hideactions[0].lchIcon = IcoLib_GetIcon("hide_icon");
- mir_strcpy(hideactions[0].lpzTitle, LPGEN("Hide contact"));
+ strncpy_s(hideactions[0].lpzTitle, LPGEN("Hide contact"), _TRUNCATE);
hideactions[0].wParam = hideactions[0].lParam = 2;
hideactions[1].cbSize = sizeof(POPUPACTION);
hideactions[1].lchIcon = IcoLib_GetIcon("neverhide_icon");
- mir_strcpy(hideactions[1].lpzTitle, LPGEN("Never hide this contact"));
+ strncpy_s(hideactions[1].lpzTitle, LPGEN("Never hide this contact"), _TRUNCATE);
hideactions[1].wParam = hideactions[1].lParam = 3;
return 0;
|