From fb507efc93b324dd3efa10e96106f4c19274aba5 Mon Sep 17 00:00:00 2001 From: dartraiden Date: Wed, 15 Nov 2017 15:03:12 +0300 Subject: max pass = 16 (https://icq.com/change-password/ru) --- protocols/IcqOscarJ/src/icq_constants.h | 2 +- protocols/IcqOscarJ/src/icq_opts.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols') diff --git a/protocols/IcqOscarJ/src/icq_constants.h b/protocols/IcqOscarJ/src/icq_constants.h index d8c1072282..c1af3d7916 100644 --- a/protocols/IcqOscarJ/src/icq_constants.h +++ b/protocols/IcqOscarJ/src/icq_constants.h @@ -631,7 +631,7 @@ #define CLIENT_MD5_STRING "AOL Instant Messenger (SM)" #define UNIQUEIDSETTING "UIN" #define UINMAXLEN 11 // DWORD string max len + 1 -#define PASSWORDMAXLEN 14 +#define PASSWORDMAXLEN 16 #define OSCAR_PROXY_HOST "ars.icq.com" #define OSCAR_PROXY_VERSION 0x044A diff --git a/protocols/IcqOscarJ/src/icq_opts.cpp b/protocols/IcqOscarJ/src/icq_opts.cpp index 791145180a..9fe0fa3ada 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, 14, 0); + SendDlgItemMessage(hwndDlg, IDC_PASSWORD, EM_LIMITTEXT, 16, 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