summaryrefslogtreecommitdiff
path: root/plugins/DbEditorPP/src/modules.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/DbEditorPP/src/modules.cpp')
-rw-r--r--plugins/DbEditorPP/src/modules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/DbEditorPP/src/modules.cpp b/plugins/DbEditorPP/src/modules.cpp
index 014b252980..f0793a9853 100644
--- a/plugins/DbEditorPP/src/modules.cpp
+++ b/plugins/DbEditorPP/src/modules.cpp
@@ -52,7 +52,7 @@ INT_PTR CALLBACK AddModDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam
case IDOK:
if (GetWindowTextLength(GetDlgItem(hwnd, IDC_MODNAME))) {
char modulename[256];
- GetDlgItemText(hwnd, IDC_MODNAME, modulename, 256);
+ GetDlgItemText(hwnd, IDC_MODNAME, modulename, SIZEOF(modulename));
if (IsDlgButtonChecked(hwnd, CHK_ADD2ALL)) {
// null contact
db_set_b(NULL, modulename, "(Default)", 0);