From efd438ad7b533ba2adb4f22a1cb358ee449db825 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 4 Jun 2015 22:23:03 +0000 Subject: new mir_sntprintf templates without SIZEOF git-svn-id: http://svn.miranda-ng.org/main/trunk@14004 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/YARelay/src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/YARelay/src') diff --git a/plugins/YARelay/src/main.cpp b/plugins/YARelay/src/main.cpp index a87eafb9a6..9539f80349 100644 --- a/plugins/YARelay/src/main.cpp +++ b/plugins/YARelay/src/main.cpp @@ -158,13 +158,13 @@ static int MessageEventAdded(WPARAM hContact, LPARAM hDBEvent) if (ci.type == CNFT_ASCIIZ) _tcsncpy_s(buf, ci.pszVal, _TRUNCATE); else if (ci.type == CNFT_BYTE) - mir_sntprintf(buf, SIZEOF(buf), _T("%u"), ci.bVal); + mir_sntprintf(buf, _T("%u"), ci.bVal); else if (ci.type == CNFT_WORD) - mir_sntprintf(buf, SIZEOF(buf), _T("%u"), ci.wVal); + mir_sntprintf(buf, _T("%u"), ci.wVal); else if (ci.type == CNFT_DWORD) - mir_sntprintf(buf, SIZEOF(buf), _T("%u"), ci.dVal); + mir_sntprintf(buf, _T("%u"), ci.dVal); } - else mir_sntprintf(buf, SIZEOF(buf), _T("%p"), hContact); + else mir_sntprintf(buf, _T("%p"), hContact); } szUtfMsg.append(T2Utf(buf)); break; -- cgit v1.2.3