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/BossKeyPlus/src/BossKey.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/BossKeyPlus') diff --git a/plugins/BossKeyPlus/src/BossKey.cpp b/plugins/BossKeyPlus/src/BossKey.cpp index a2000694d4..60bdd2084f 100644 --- a/plugins/BossKeyPlus/src/BossKey.cpp +++ b/plugins/BossKeyPlus/src/BossKey.cpp @@ -503,7 +503,7 @@ static TCHAR *GetBossKeyText(void) BYTE shift = HIBYTE(wHotKey); static TCHAR buf[128] = { 0 }; - mir_sntprintf(buf, SIZEOF(buf), _T("%s%s%s%s%s"), + mir_sntprintf(buf, _T("%s%s%s%s%s"), (shift & HOTKEYF_CONTROL) ? _T("Ctrl + ") : _T(""), (shift & HOTKEYF_SHIFT) ? _T("Shift + ") : _T(""), (shift & HOTKEYF_ALT) ? _T("Alt + ") : _T(""), @@ -522,7 +522,7 @@ static int GenMenuInit(WPARAM, LPARAM) // Modify menu item text before to show t { if (g_hMenuItem) { TCHAR buf[128] = { 0 }; - mir_sntprintf(buf, SIZEOF(buf), _T("%s [%s]"), TranslateT("Hide"), GetBossKeyText()); + mir_sntprintf(buf, _T("%s [%s]"), TranslateT("Hide"), GetBossKeyText()); CLISTMENUITEM mi = { sizeof(mi) }; mi.flags = CMIM_FLAGS | CMIF_TCHAR | CMIM_NAME; -- cgit v1.2.3