From 2f261839b60692e33d0e160344d0d636d49c90ba Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 27 Jul 2016 14:23:31 +0000 Subject: less TCHARs git-svn-id: http://svn.miranda-ng.org/main/trunk@17138 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/BuddyExpectator/src/BuddyExpectator.cpp | 8 ++++---- plugins/BuddyExpectator/src/options.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/BuddyExpectator') diff --git a/plugins/BuddyExpectator/src/BuddyExpectator.cpp b/plugins/BuddyExpectator/src/BuddyExpectator.cpp index cc3b479be4..4fc8a9e978 100644 --- a/plugins/BuddyExpectator/src/BuddyExpectator.cpp +++ b/plugins/BuddyExpectator/src/BuddyExpectator.cpp @@ -231,8 +231,8 @@ bool isContactGoneFor(MCONTACT hContact, int days) ppd.lchContact = hContact; ppd.lchIcon = IcoLib_GetIcon("enabled_icon"); - mir_sntprintf(ppd.lptzContactName, TranslateT("Hiding %s (%S)"), pcli->pfnGetContactDisplayName(hContact, 0), GetContactProto(hContact)); - mir_sntprintf(ppd.lptzText, TranslateT("%d days since last message"), daysSinceMessage); + mir_snwprintf(ppd.lptzContactName, TranslateT("Hiding %s (%S)"), pcli->pfnGetContactDisplayName(hContact, 0), GetContactProto(hContact)); + mir_snwprintf(ppd.lptzText, TranslateT("%d days since last message"), daysSinceMessage); if (!options.iUsePopupColors) { ppd.colorBack = options.iPopupColorBack; @@ -286,7 +286,7 @@ void ReturnNotify(MCONTACT hContact, wchar_t *message) wchar_t* nick = (wchar_t*)pcli->pfnGetContactDisplayName(hContact, 0); wchar_t tmpMsg[512]; - mir_sntprintf(tmpMsg, L"%s %s", nick, message); + mir_snwprintf(tmpMsg, L"%s %s", nick, message); cle.ptszTooltip = tmpMsg; pcli->pfnAddEvent(&cle); } @@ -323,7 +323,7 @@ void GoneNotify(MCONTACT hContact, wchar_t *message) wchar_t* nick = (wchar_t*)pcli->pfnGetContactDisplayName(hContact, 0); wchar_t tmpMsg[512]; - mir_sntprintf(tmpMsg, L"%s %s", nick, message); + mir_snwprintf(tmpMsg, L"%s %s", nick, message); cle.ptszTooltip = tmpMsg; cle.flags = CLEF_TCHAR; pcli->pfnAddEvent(&cle); diff --git a/plugins/BuddyExpectator/src/options.cpp b/plugins/BuddyExpectator/src/options.cpp index b0be57b26e..c2bdeb591c 100644 --- a/plugins/BuddyExpectator/src/options.cpp +++ b/plugins/BuddyExpectator/src/options.cpp @@ -327,7 +327,7 @@ static INT_PTR CALLBACK PopupOptionsFrameProc(HWND hwndDlg, UINT uMsg, WPARAM wP ppd.lchIcon = hIcon; wcsncpy(ppd.lptzContactName, TranslateT("Contact name"), MAX_CONTACTNAME); wchar_t szPreviewText[250]; - mir_sntprintf(szPreviewText, TranslateT("has returned after being absent since %d days"), rand() % 30); + mir_snwprintf(szPreviewText, TranslateT("has returned after being absent since %d days"), rand() % 30); wcsncpy(ppd.lptzText, szPreviewText, MAX_SECONDLINE); // Get current popups colors options -- cgit v1.2.3