summaryrefslogtreecommitdiff
path: root/protocols/Yahoo/src/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Yahoo/src/options.cpp')
-rw-r--r--protocols/Yahoo/src/options.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/Yahoo/src/options.cpp b/protocols/Yahoo/src/options.cpp
index f8eeab9976..085c488add 100644
--- a/protocols/Yahoo/src/options.cpp
+++ b/protocols/Yahoo/src/options.cpp
@@ -97,7 +97,7 @@ static INT_PTR CALLBACK DlgProcYahooOpts(HWND hwndDlg, UINT msg, WPARAM wParam,
bool reconnectRequired = false;
char str[128];
- GetDlgItemTextA(hwndDlg, IDC_HANDLE, str, SIZEOF(str));
+ GetDlgItemTextA(hwndDlg, IDC_HANDLE, str, _countof(str));
if (ppro->getString(YAHOO_LOGINID, &dbv)) {
reconnectRequired = true;
}
@@ -108,7 +108,7 @@ static INT_PTR CALLBACK DlgProcYahooOpts(HWND hwndDlg, UINT msg, WPARAM wParam,
}
ppro->setString(YAHOO_LOGINID, str);
- GetDlgItemTextA(hwndDlg, IDC_PASSWORD, str, SIZEOF(str));
+ GetDlgItemTextA(hwndDlg, IDC_PASSWORD, str, _countof(str));
if (ppro->getString(YAHOO_PASSWORD, &dbv)) {
reconnectRequired = true;
}
@@ -119,7 +119,7 @@ static INT_PTR CALLBACK DlgProcYahooOpts(HWND hwndDlg, UINT msg, WPARAM wParam,
}
ppro->setString(YAHOO_PASSWORD, str);
- GetDlgItemTextA(hwndDlg, IDC_NICK, str, SIZEOF(str));
+ GetDlgItemTextA(hwndDlg, IDC_NICK, str, _countof(str));
if (str[0] == '\0') {
@@ -213,7 +213,7 @@ YAHOO_DEFAULT_JAPAN_LOGIN_SERVER :
if (((LPNMHDR)lParam)->code == PSN_APPLY) {
bool reconnectRequired = false;
char str[128];
- GetDlgItemTextA(hwndDlg, IDC_LOGINSERVER, str, SIZEOF(str));
+ GetDlgItemTextA(hwndDlg, IDC_LOGINSERVER, str, _countof(str));
DBVARIANT dbv;
if (ppro->getString(YAHOO_LOGINSERVER, &dbv)) {
@@ -303,7 +303,7 @@ static INT_PTR CALLBACK DlgProcYahooOptsIgnore(HWND hwndDlg, UINT msg, WPARAM wP
MessageBox(hwndDlg, TranslateT("You need to be connected to Yahoo to add to Ignore List."), TranslateT("Yahoo Ignore"), MB_OK | MB_ICONINFORMATION);
else {
char id[128];
- int i = GetDlgItemTextA(hwndDlg, IDC_YIGN_EDIT, id, SIZEOF(id));
+ int i = GetDlgItemTextA(hwndDlg, IDC_YIGN_EDIT, id, _countof(id));
if (i < 3) {
MessageBox(hwndDlg, TranslateT("Please enter a valid buddy name to ignore."), TranslateT("Yahoo Ignore"), MB_OK | MB_ICONINFORMATION);