summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/setnickname.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Xfire/src/setnickname.cpp')
-rw-r--r--protocols/Xfire/src/setnickname.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Xfire/src/setnickname.cpp b/protocols/Xfire/src/setnickname.cpp
index bfd5d3465a..d4eecf58c3 100644
--- a/protocols/Xfire/src/setnickname.cpp
+++ b/protocols/Xfire/src/setnickname.cpp
@@ -24,7 +24,7 @@ INT_PTR CALLBACK DlgNickProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara
if (LOWORD(wParam) == IDOK)
{
char nick[255];
- GetDlgItemTextA(hwndDlg, IDC_NICKNAME, nick, SIZEOF(nick));
+ GetDlgItemTextA(hwndDlg, IDC_NICKNAME, nick, _countof(nick));
CallService(XFIRE_SET_NICK, 0, (LPARAM)nick);