summaryrefslogtreecommitdiff
path: root/plugins/DbEditorPP/src/watchedvars.cpp
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2014-12-01 00:33:09 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2014-12-01 00:33:09 +0000
commitfaccf4803bd25abbb27402ab1127d085efd9061f (patch)
tree36ff52c5affad34aa47c98a18ca246ec474d13ec /plugins/DbEditorPP/src/watchedvars.cpp
parentb2fad485cd5b41744ef0cc4a02722c021afd926c (diff)
code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@11185 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/DbEditorPP/src/watchedvars.cpp')
-rw-r--r--plugins/DbEditorPP/src/watchedvars.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/DbEditorPP/src/watchedvars.cpp b/plugins/DbEditorPP/src/watchedvars.cpp
index 1f1a483bdd..e2500cdcd6 100644
--- a/plugins/DbEditorPP/src/watchedvars.cpp
+++ b/plugins/DbEditorPP/src/watchedvars.cpp
@@ -264,8 +264,8 @@ INT_PTR CALLBACK WatchDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
ItemInfo ii;
ii.hContact = (MCONTACT)lvi.lParam;
- ListView_GetItemText(GetDlgItem(hwnd,IDC_VARS),hti.iItem,1,ii.module,128);
- ListView_GetItemText(GetDlgItem(hwnd,IDC_VARS),hti.iItem,2,ii.setting,128);
+ ListView_GetItemText(GetDlgItem(hwnd, IDC_VARS), hti.iItem, 1, ii.module, SIZEOF(ii.module));
+ ListView_GetItemText(GetDlgItem(hwnd, IDC_VARS), hti.iItem, 2, ii.setting, SIZEOF(ii.setting));
ii.type = FW_SETTINGNAME;
SendMessage(hwnd2mainWindow,WM_FINDITEM,(WPARAM)&ii,0);
}