diff options
Diffstat (limited to 'protocols/Gadu-Gadu/src/gg_proto.cpp')
-rw-r--r-- | protocols/Gadu-Gadu/src/gg_proto.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/protocols/Gadu-Gadu/src/gg_proto.cpp b/protocols/Gadu-Gadu/src/gg_proto.cpp index 4b06361a18..248f33e393 100644 --- a/protocols/Gadu-Gadu/src/gg_proto.cpp +++ b/protocols/Gadu-Gadu/src/gg_proto.cpp @@ -420,7 +420,7 @@ HWND GGPROTO::SearchAdvanced(HWND hwndDlg) }
// Fetch search data
- GetDlgItemText(hwndDlg, IDC_FIRSTNAME, text, sizeof(text));
+ GetDlgItemText(hwndDlg, IDC_FIRSTNAME, text, SIZEOF(text));
if (_tcslen(text))
{
char *firstName_utf8 = mir_utf8encodeT(text);
@@ -430,7 +430,7 @@ HWND GGPROTO::SearchAdvanced(HWND hwndDlg) }
/* 1 */ strncat(data, ".", sizeof(data) - strlen(data));
- GetDlgItemText(hwndDlg, IDC_LASTNAME, text, sizeof(text));
+ GetDlgItemText(hwndDlg, IDC_LASTNAME, text, SIZEOF(text));
if (_tcslen(text))
{
char *lastName_utf8 = mir_utf8encodeT(text);
@@ -440,7 +440,7 @@ HWND GGPROTO::SearchAdvanced(HWND hwndDlg) }
/* 2 */ strncat(data, ".", sizeof(data) - strlen(data));
- GetDlgItemText(hwndDlg, IDC_NICKNAME, text, sizeof(text));
+ GetDlgItemText(hwndDlg, IDC_NICKNAME, text, SIZEOF(text));
if (_tcslen(text))
{
char *nickName_utf8 = mir_utf8encodeT(text);
@@ -450,7 +450,7 @@ HWND GGPROTO::SearchAdvanced(HWND hwndDlg) }
/* 3 */ strncat(data, ".", sizeof(data) - strlen(data));
- GetDlgItemText(hwndDlg, IDC_CITY, text, sizeof(text));
+ GetDlgItemText(hwndDlg, IDC_CITY, text, SIZEOF(text));
if (_tcslen(text))
{
char *city_utf8 = mir_utf8encodeT(text);
@@ -460,7 +460,7 @@ HWND GGPROTO::SearchAdvanced(HWND hwndDlg) }
/* 4 */ strncat(data, ".", sizeof(data) - strlen(data));
- GetDlgItemText(hwndDlg, IDC_AGEFROM, text, sizeof(text));
+ GetDlgItemText(hwndDlg, IDC_AGEFROM, text, SIZEOF(text));
if (_tcslen(text))
{
int yearTo = _tstoi(text);
@@ -470,7 +470,7 @@ HWND GGPROTO::SearchAdvanced(HWND hwndDlg) int ay = lt->tm_year + 1900;
char age[16];
- GetDlgItemTextA(hwndDlg, IDC_AGETO, age, sizeof(age));
+ GetDlgItemTextA(hwndDlg, IDC_AGETO, age, SIZEOF(age));
yearFrom = atoi(age);
// Count & fix ranges
|