From 4f0e30cdf56fbafdf955bbe8b93930bab9e39bd0 Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Sun, 30 Nov 2014 18:33:56 +0000 Subject: 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 --- protocols/SkypeClassic/src/skypeapi.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols/SkypeClassic/src/skypeapi.cpp') diff --git a/protocols/SkypeClassic/src/skypeapi.cpp b/protocols/SkypeClassic/src/skypeapi.cpp index afbde43ec8..8ed5900f57 100644 --- a/protocols/SkypeClassic/src/skypeapi.cpp +++ b/protocols/SkypeClassic/src/skypeapi.cpp @@ -738,7 +738,7 @@ static INT_PTR CALLBACK DialDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPAR switch (LOWORD(wParam)) { case IDDIAL: EnableWindow(GetDlgItem(hwndDlg, IDDIAL), FALSE); - GetDlgItemTextA(hwndDlg, IDC_NUMBER, number, sizeof(number)); + GetDlgItemTextA(hwndDlg, IDC_NUMBER, number, SIZEOF(number)); if (!strncmp(number, "00", 2)) { memmove(number, number+1, sizeof(number)-1); number[0]='+'; @@ -834,15 +834,15 @@ static INT_PTR CALLBACK CallstatDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, TranslateDialogDefault(hwndDlg); SendMessage(hwndDlg, WM_COMMAND, IDC_JOIN, 0); - GetWindowTextA(hwndDlg, buf, sizeof(buf)); + GetWindowTextA(hwndDlg, buf, SIZEOF(buf)); _snprintf(buf2, sizeof(buf), buf, CallService(MS_CLIST_GETCONTACTDISPLAYNAME,(WPARAM)lParam,0)); SetWindowTextA(hwndDlg, buf2); - GetDlgItemTextA(hwndDlg, IDC_JOIN, buf, sizeof(buf)); + GetDlgItemTextA(hwndDlg, IDC_JOIN, buf, SIZEOF(buf)); _snprintf(buf2, sizeof(buf), buf, szOtherCaller); SetDlgItemTextA(hwndDlg, IDC_JOIN, buf2); - GetDlgItemTextA(hwndDlg, IDC_HOLD, buf, sizeof(buf)); + GetDlgItemTextA(hwndDlg, IDC_HOLD, buf, SIZEOF(buf)); _snprintf(buf2, sizeof(buf), buf, szOtherCaller); SetDlgItemTextA(hwndDlg, IDC_HOLD, buf2); -- cgit v1.2.3