diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2014-12-31 10:55:52 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2014-12-31 10:55:52 +0000 |
commit | 6cc54049b4e7ba48787758c5332341df6f93be81 (patch) | |
tree | e4712db18280f6099d804abff84739cb7b8c3f7a /plugins/DbEditorPP/src/watchedvars.cpp | |
parent | cad77e7d51aef2c4d938fca592921e14d923f8c5 (diff) |
minor fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@11692 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/DbEditorPP/src/watchedvars.cpp')
-rw-r--r-- | plugins/DbEditorPP/src/watchedvars.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/DbEditorPP/src/watchedvars.cpp b/plugins/DbEditorPP/src/watchedvars.cpp index 18250c4f09..d5a6ce476a 100644 --- a/plugins/DbEditorPP/src/watchedvars.cpp +++ b/plugins/DbEditorPP/src/watchedvars.cpp @@ -331,8 +331,8 @@ void popupWatchedVar(MCONTACT hContact, const char* module, const char* setting) POPUPDATA ppd = { 0 };
ppd.lchContact = (MCONTACT)hContact;
ppd.lchIcon = hIcon;
- mir_tstrncpy(ppd.lpzContactName, lpzContactName, MAX_CONTACTNAME);
- mir_tstrncpy(ppd.lpzText, lpzText, MAX_SECONDLINE);
+ mir_tstrncpy(ppd.lpzContactName, lpzContactName, SIZEOF(ppd.lpzContactName));
+ mir_tstrncpy(ppd.lpzText, lpzText, SIZEOF(ppd.lpzText));
ppd.colorBack = colorBack;
ppd.colorText = colorText;
ppd.iSeconds = timeout ? timeout : -1;
|