diff options
Diffstat (limited to 'protocols/Tlen/src')
| -rw-r--r-- | protocols/Tlen/src/tlen_advsearch.cpp | 2 | ||||
| -rw-r--r-- | protocols/Tlen/src/tlen_opt.cpp | 18 | ||||
| -rw-r--r-- | protocols/Tlen/src/tlen_thread.cpp | 2 | ||||
| -rw-r--r-- | protocols/Tlen/src/tlen_userinfo.cpp | 2 | 
4 files changed, 12 insertions, 12 deletions
diff --git a/protocols/Tlen/src/tlen_advsearch.cpp b/protocols/Tlen/src/tlen_advsearch.cpp index 33d7e907a9..1689a93173 100644 --- a/protocols/Tlen/src/tlen_advsearch.cpp +++ b/protocols/Tlen/src/tlen_advsearch.cpp @@ -61,7 +61,7 @@ static void FetchField(HWND hwndDlg, UINT idCtrl, char *fieldName, char **str, i  	if (hwndDlg == NULL || fieldName == NULL || str == NULL || strSize == NULL)
  		return;
 -	GetDlgItemTextA(hwndDlg, idCtrl, text, sizeof(text));
 +	GetDlgItemTextA(hwndDlg, idCtrl, text, SIZEOF(text));
  	if (text[0]) {
  		if ((localFieldName=TlenTextEncode(fieldName)) != NULL) {
  			if ((localText=TlenTextEncode(text)) != NULL) {
 diff --git a/protocols/Tlen/src/tlen_opt.cpp b/protocols/Tlen/src/tlen_opt.cpp index 580de2c3cb..e7e73be5be 100644 --- a/protocols/Tlen/src/tlen_opt.cpp +++ b/protocols/Tlen/src/tlen_opt.cpp @@ -158,7 +158,7 @@ INT_PTR CALLBACK TlenAccMgrUIDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR  				bool reconnectRequired = false;  				DBVARIANT dbv; -				GetDlgItemTextA(hwndDlg, IDC_EDIT_USERNAME, text, sizeof(text)); +				GetDlgItemTextA(hwndDlg, IDC_EDIT_USERNAME, text, SIZEOF(text));  				if (db_get(NULL, proto->m_szModuleName, "LoginName", &dbv)) {  					reconnectRequired = true;  				} @@ -170,7 +170,7 @@ INT_PTR CALLBACK TlenAccMgrUIDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR  				db_set_s(NULL, proto->m_szModuleName, "LoginName", strlwr(text));  				if (IsDlgButtonChecked(hwndDlg, IDC_SAVEPASSWORD)) { -					GetDlgItemTextA(hwndDlg, IDC_EDIT_PASSWORD, text, sizeof(text)); +					GetDlgItemTextA(hwndDlg, IDC_EDIT_PASSWORD, text, SIZEOF(text));  					if (db_get(NULL, proto->m_szModuleName, "Password", &dbv)) {  						reconnectRequired = true;  					} @@ -302,7 +302,7 @@ static INT_PTR CALLBACK TlenBasicOptDlgProc(HWND hwndDlg, UINT msg, WPARAM wPara  				bool reconnectRequired = false;  				DBVARIANT dbv; -				GetDlgItemTextA(hwndDlg, IDC_EDIT_USERNAME, text, sizeof(text)); +				GetDlgItemTextA(hwndDlg, IDC_EDIT_USERNAME, text, SIZEOF(text));  				if (db_get(NULL, proto->m_szModuleName, "LoginName", &dbv)) {  					reconnectRequired = true;  				} @@ -314,7 +314,7 @@ static INT_PTR CALLBACK TlenBasicOptDlgProc(HWND hwndDlg, UINT msg, WPARAM wPara  				db_set_s(NULL, proto->m_szModuleName, "LoginName", strlwr(text));  				if (IsDlgButtonChecked(hwndDlg, IDC_SAVEPASSWORD)) { -					GetDlgItemTextA(hwndDlg, IDC_EDIT_PASSWORD, text, sizeof(text)); +					GetDlgItemTextA(hwndDlg, IDC_EDIT_PASSWORD, text, SIZEOF(text));  					if (db_get(NULL, proto->m_szModuleName, "Password", &dbv)) {  						reconnectRequired = true;  					} @@ -527,7 +527,7 @@ static INT_PTR CALLBACK TlenAdvOptDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam,  			bool reconnectRequired = false;  			DBVARIANT dbv; -			GetDlgItemTextA(hwndDlg, IDC_EDIT_LOGIN_SERVER, text, sizeof(text)); +			GetDlgItemTextA(hwndDlg, IDC_EDIT_LOGIN_SERVER, text, SIZEOF(text));  			if (db_get(NULL, proto->m_szModuleName, "LoginServer", &dbv)) {  				reconnectRequired = true;  			} @@ -538,7 +538,7 @@ static INT_PTR CALLBACK TlenAdvOptDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam,  			}  			db_set_s(NULL, proto->m_szModuleName, "LoginServer", strlwr(text)); -			GetDlgItemTextA(hwndDlg, IDC_HOST, text, sizeof(text)); +			GetDlgItemTextA(hwndDlg, IDC_HOST, text, SIZEOF(text));  			if (db_get(NULL, proto->m_szModuleName, "ManualHost", &dbv)) {  				reconnectRequired = true;  			} @@ -568,16 +568,16 @@ static INT_PTR CALLBACK TlenAdvOptDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam,  			db_set_b(NULL, proto->m_szModuleName, "UseFileProxy", (BYTE) IsDlgButtonChecked(hwndDlg, IDC_FILE_USE_PROXY));  			db_set_w(NULL, proto->m_szModuleName, "FileProxyType", (WORD) SendDlgItemMessage(hwndDlg, IDC_FILE_PROXY_TYPE, CB_GETCURSEL, 0, 0)); -			GetDlgItemTextA(hwndDlg, IDC_FILE_PROXY_HOST, text, sizeof(text)); +			GetDlgItemTextA(hwndDlg, IDC_FILE_PROXY_HOST, text, SIZEOF(text));  			db_set_s(NULL, proto->m_szModuleName, "FileProxyHost", text);  			db_set_w(NULL, proto->m_szModuleName, "FileProxyPort", (WORD) GetDlgItemInt(hwndDlg, IDC_FILE_PROXY_PORT, NULL, FALSE));  			db_set_b(NULL, proto->m_szModuleName, "FileProxyAuth", (BYTE) IsDlgButtonChecked(hwndDlg, IDC_FILE_PROXY_USE_AUTH)); -			GetDlgItemTextA(hwndDlg, IDC_FILE_PROXY_USER, text, sizeof(text)); +			GetDlgItemTextA(hwndDlg, IDC_FILE_PROXY_USER, text, SIZEOF(text));  			db_set_s(NULL, proto->m_szModuleName, "FileProxyUsername", text); -			GetDlgItemTextA(hwndDlg, IDC_FILE_PROXY_PASSWORD, text, sizeof(text)); +			GetDlgItemTextA(hwndDlg, IDC_FILE_PROXY_PASSWORD, text, SIZEOF(text));  			db_set_s(NULL, proto->m_szModuleName, "FileProxyPassword", text);  			if (reconnectRequired && proto->isConnected) diff --git a/protocols/Tlen/src/tlen_thread.cpp b/protocols/Tlen/src/tlen_thread.cpp index 0f4a9f8143..0f634b6cff 100644 --- a/protocols/Tlen/src/tlen_thread.cpp +++ b/protocols/Tlen/src/tlen_thread.cpp @@ -78,7 +78,7 @@ static INT_PTR CALLBACK TlenPasswordDlgProc(HWND hwndDlg, UINT msg, WPARAM wPara  	case WM_COMMAND:
  		switch (LOWORD(wParam)) {
  		case IDOK:
 -			GetDlgItemTextA(hwndDlg, IDC_PASSWORD, onlinePassword, sizeof(onlinePassword));
 +			GetDlgItemTextA(hwndDlg, IDC_PASSWORD, onlinePassword, SIZEOF(onlinePassword));
  			//EndDialog(hwndDlg, (int) onlinePassword);
  			//return TRUE;
  			// Fall through
 diff --git a/protocols/Tlen/src/tlen_userinfo.cpp b/protocols/Tlen/src/tlen_userinfo.cpp index 108214ebf2..dd927f4806 100644 --- a/protocols/Tlen/src/tlen_userinfo.cpp +++ b/protocols/Tlen/src/tlen_userinfo.cpp @@ -99,7 +99,7 @@ static void FetchField(HWND hwndDlg, UINT idCtrl, char *fieldName, char **str, i  	if (hwndDlg == NULL || fieldName == NULL || str == NULL || strSize == NULL)
  		return;
 -	GetDlgItemTextA(hwndDlg, idCtrl, text, sizeof(text));
 +	GetDlgItemTextA(hwndDlg, idCtrl, text, SIZEOF(text));
  	if (text[0]) {
  		if ((localFieldName=TlenTextEncode(fieldName)) != NULL) {
  			if ((localText=TlenTextEncode(text)) != NULL) {
  | 
