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 --- protocols/JabberG/src/jabber_privacy.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/JabberG/src/jabber_privacy.cpp') diff --git a/protocols/JabberG/src/jabber_privacy.cpp b/protocols/JabberG/src/jabber_privacy.cpp index 2169b02f1d..2b7309779f 100644 --- a/protocols/JabberG/src/jabber_privacy.cpp +++ b/protocols/JabberG/src/jabber_privacy.cpp @@ -58,9 +58,9 @@ void CJabberProto::OnIqResultPrivacyListModify(HXML, CJabberIqInfo *pInfo) if (!pParam->m_dwCount) { TCHAR szText[ 512 ]; if (!pParam->m_bAllOk) - mir_sntprintf(szText, SIZEOF(szText), TranslateT("Error occurred while applying changes")); + mir_sntprintf(szText, TranslateT("Error occurred while applying changes")); else - mir_sntprintf(szText, SIZEOF(szText), TranslateT("Privacy lists successfully saved")); + mir_sntprintf(szText, TranslateT("Privacy lists successfully saved")); if (m_pDlgPrivacyLists) m_pDlgPrivacyLists->SetStatusText(szText); // FIXME: enable apply button @@ -226,14 +226,14 @@ void CJabberProto::OnIqResultPrivacyListDefault(HXML iqNode, CJabberIqInfo *pInf CPrivacyList *pList = (CPrivacyList *)pInfo->GetUserData(); if (pList) { m_privacyListManager.SetDefaultListName(pList->GetListName()); - mir_sntprintf(szText, SIZEOF(szText), TranslateT("Privacy list %s set as default"), pList->GetListName()); + mir_sntprintf(szText, TranslateT("Privacy list %s set as default"), pList->GetListName()); } else { m_privacyListManager.SetDefaultListName(NULL); - mir_sntprintf(szText, SIZEOF(szText), TranslateT("Default privacy list successfully declined")); + mir_sntprintf(szText, TranslateT("Default privacy list successfully declined")); } } - else mir_sntprintf(szText, SIZEOF(szText), TranslateT("Error occurred while setting default list")); + else mir_sntprintf(szText, TranslateT("Error occurred while setting default list")); } if (m_pDlgPrivacyLists) { -- cgit v1.2.3