From cf94714e719bff9a7b36af9dedf5121be9147f65 Mon Sep 17 00:00:00 2001 From: dartraiden Date: Wed, 15 Nov 2017 17:11:11 +0300 Subject: Static constants replaced by variable --- protocols/IcqOscarJ/src/icq_opts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/IcqOscarJ/src/icq_opts.cpp') diff --git a/protocols/IcqOscarJ/src/icq_opts.cpp b/protocols/IcqOscarJ/src/icq_opts.cpp index 9fe0fa3ada..b433d495db 100644 --- a/protocols/IcqOscarJ/src/icq_opts.cpp +++ b/protocols/IcqOscarJ/src/icq_opts.cpp @@ -72,7 +72,7 @@ static INT_PTR CALLBACK DlgProcIcqOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LP else // keep it empty when no UIN entered SetDlgItemTextA(hwndDlg, IDC_ICQNUM, ""); - SendDlgItemMessage(hwndDlg, IDC_PASSWORD, EM_LIMITTEXT, 16, 0); + SendDlgItemMessage(hwndDlg, IDC_PASSWORD, EM_LIMITTEXT, PASSWORDMAXLEN, 0); // bit of a security hole here, since it's easy to extract a password from an edit box char pszPwd[PASSWORDMAXLEN+1]; -- cgit v1.2.3