summaryrefslogtreecommitdiff
path: root/protocols/Gadu-Gadu/src/gg_proto.cpp
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2014-11-30 18:33:56 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2014-11-30 18:33:56 +0000
commit4f0e30cdf56fbafdf955bbe8b93930bab9e39bd0 (patch)
treeded36ec10c55fb5d33c8d2e471ec808eeb058a04 /protocols/Gadu-Gadu/src/gg_proto.cpp
parent237d02ebbabbedfb8b33160ebfb5250bbd491eca (diff)
Fix buf size for Get/Set text, open/save file name
SMS: SIZE_T -> size_t MRA: small code cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@11175 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Gadu-Gadu/src/gg_proto.cpp')
-rw-r--r--protocols/Gadu-Gadu/src/gg_proto.cpp12
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