From b7c74cd5b22618d544a3f4ae124985d4837e3a22 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 4 Jun 2015 22:12:13 +0000 Subject: new mir_snprintf templates without SIZEOF git-svn-id: http://svn.miranda-ng.org/main/trunk@14002 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Twitter/src/ui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Twitter/src') diff --git a/protocols/Twitter/src/ui.cpp b/protocols/Twitter/src/ui.cpp index a0232d5da2..c1575bd090 100644 --- a/protocols/Twitter/src/ui.cpp +++ b/protocols/Twitter/src/ui.cpp @@ -138,7 +138,7 @@ INT_PTR CALLBACK tweet_proc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam else if (LOWORD(wParam) == IDC_TWEETMSG && HIWORD(wParam) == EN_CHANGE) { size_t len = SendDlgItemMessage(hwndDlg, IDC_TWEETMSG, WM_GETTEXTLENGTH, 0, 0); char str[16]; - mir_snprintf(str, SIZEOF(str), "%d", 140 - len); + mir_snprintf(str, "%d", 140 - len); SetDlgItemTextA(hwndDlg, IDC_CHARACTERS, str); return true; @@ -154,7 +154,7 @@ INT_PTR CALLBACK tweet_proc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam SendDlgItemMessage(hwndDlg, IDC_TWEETMSG, EM_SETSEL, len, len); char str[16]; - mir_snprintf(str, SIZEOF(str), "%d", 140 - len); + mir_snprintf(str, "%d", 140 - len); SetDlgItemTextA(hwndDlg, IDC_CHARACTERS, str); return true; @@ -393,7 +393,7 @@ INT_PTR CALLBACK popup_options_proc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA CheckAndUpdateDlgButton(hwndDlg, IDC_TIMEOUT_PERMANENT, true); else { char str[32]; - mir_snprintf(str, SIZEOF(str), "%d", timeout); + mir_snprintf(str, "%d", timeout); SetDlgItemTextA(hwndDlg, IDC_TIMEOUT, str); CheckAndUpdateDlgButton(hwndDlg, IDC_TIMEOUT_CUSTOM, true); } -- cgit v1.2.3