summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/src/icq_firstrun.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-11-15 12:50:38 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-11-15 12:50:38 +0300
commitf6f193f8d9ef286699be2c2282a9c448f7668842 (patch)
treeeb5ca088d0ce320fc6f78a73c857e5899ab51bf0 /protocols/IcqOscarJ/src/icq_firstrun.cpp
parent854f47adb115f3d03d6a64543178e84877acb0b4 (diff)
fixes #1031 (ICQ password must be of 14 chars most)
Diffstat (limited to 'protocols/IcqOscarJ/src/icq_firstrun.cpp')
-rw-r--r--protocols/IcqOscarJ/src/icq_firstrun.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/IcqOscarJ/src/icq_firstrun.cpp b/protocols/IcqOscarJ/src/icq_firstrun.cpp
index 297449d303..6fe8fb8fd7 100644
--- a/protocols/IcqOscarJ/src/icq_firstrun.cpp
+++ b/protocols/IcqOscarJ/src/icq_firstrun.cpp
@@ -34,8 +34,8 @@ static void accountLoadDetails(CIcqProto *ppro, HWND hwndDlg)
SetDlgItemTextA(hwndDlg, IDC_UIN, pszUIN);
}
- char pszPwd[PASSWORDMAXLEN];
- if (ppro->GetUserStoredPassword(pszPwd, PASSWORDMAXLEN))
+ char pszPwd[PASSWORDMAXLEN+1];
+ if (ppro->GetUserStoredPassword(pszPwd))
SetDlgItemTextA(hwndDlg, IDC_PW, pszPwd);
}
@@ -52,7 +52,7 @@ INT_PTR CALLBACK icq_FirstRunDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR
Window_SetIcon_IcoLib(hwndDlg, ppro->m_hProtoIcon);
- SendDlgItemMessage(hwndDlg, IDC_PW, EM_LIMITTEXT, PASSWORDMAXLEN - 1, 0);
+ SendDlgItemMessage(hwndDlg, IDC_PW, EM_LIMITTEXT, PASSWORDMAXLEN, 0);
accountLoadDetails(ppro, hwndDlg);
return TRUE;