summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/passworddialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Xfire/src/passworddialog.cpp')
-rw-r--r--protocols/Xfire/src/passworddialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Xfire/src/passworddialog.cpp b/protocols/Xfire/src/passworddialog.cpp
index c395f3f630..f6cdb167c8 100644
--- a/protocols/Xfire/src/passworddialog.cpp
+++ b/protocols/Xfire/src/passworddialog.cpp
@@ -15,7 +15,7 @@ INT_PTR CALLBACK DlgPWProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
GetDlgItemTextA(hwndDlg, IDC_PWSTRING, (LPSTR)pw, 254);
if (usenick)
- GetDlgItemTextA(hwndDlg, IDC_PWNICK, (LPSTR)nick, 254);
+ GetDlgItemTextA(hwndDlg, IDC_PWNICK, (LPSTR)nick, SIZEOF(nick));
EndDialog(hwndDlg, (INT_PTR)pw);
break;
}