summaryrefslogtreecommitdiff
path: root/plugins/YAPP/src/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/YAPP/src/options.cpp')
-rw-r--r--plugins/YAPP/src/options.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/YAPP/src/options.cpp b/plugins/YAPP/src/options.cpp
index c679060a6b..36fffaa00d 100644
--- a/plugins/YAPP/src/options.cpp
+++ b/plugins/YAPP/src/options.cpp
@@ -453,11 +453,11 @@ static INT_PTR CALLBACK DlgProcOptsClasses(HWND hwndDlg, UINT msg, WPARAM wParam
char setting[256];
for (int i = 0; i < arClasses.getCount(); i++) {
POPUPCLASS *pc = arClasses[i];
- mir_snprintf(setting, 256, "%s/Timeout", pc->pszName);
+ mir_snprintf(setting, SIZEOF(setting), "%s/Timeout", pc->pszName);
db_set_w(0, MODULE, setting, pc->iSeconds);
- mir_snprintf(setting, 256, "%s/TextCol", pc->pszName);
+ mir_snprintf(setting, SIZEOF(setting), "%s/TextCol", pc->pszName);
db_set_dw(0, MODULE, setting, (DWORD)pc->colorText);
- mir_snprintf(setting, 256, "%s/BgCol", pc->pszName);
+ mir_snprintf(setting, SIZEOF(setting), "%s/BgCol", pc->pszName);
db_set_dw(0, MODULE, setting, (DWORD)pc->colorBack);
}
return TRUE;