From c370af60855db957c5b200914bf0bde743845528 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 28 Aug 2015 16:22:41 +0000 Subject: mir_sntprintf / mir_snprintf: obsoleted second parameter removed wherever possible git-svn-id: http://svn.miranda-ng.org/main/trunk@15064 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tlen/src/tlen_thread.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/Tlen/src/tlen_thread.cpp') diff --git a/protocols/Tlen/src/tlen_thread.cpp b/protocols/Tlen/src/tlen_thread.cpp index 3a736cc836..3567701282 100644 --- a/protocols/Tlen/src/tlen_thread.cpp +++ b/protocols/Tlen/src/tlen_thread.cpp @@ -72,7 +72,7 @@ static INT_PTR CALLBACK TlenPasswordDlgProc(HWND hwndDlg, UINT msg, WPARAM wPara switch (msg) { case WM_INITDIALOG: TranslateDialogDefault(hwndDlg); - mir_snprintf(text, _countof(text), Translate("Enter password for %s"), (char *) lParam); + mir_snprintf(text, Translate("Enter password for %s"), (char *) lParam); SetDlgItemTextA(hwndDlg, IDC_JID, text); return TRUE; case WM_COMMAND: @@ -207,7 +207,7 @@ void __cdecl TlenServerThread(ThreadData *info) return; } - mir_snprintf(jidStr, _countof(jidStr), "%s@%s", info->username, info->server); + mir_snprintf(jidStr, "%s@%s", info->username, info->server); db_set_s(NULL, info->proto->m_szModuleName, "jid", jidStr); if (!db_get(NULL, info->proto->m_szModuleName, "ManualHost", &dbv)) { @@ -400,7 +400,7 @@ static void TlenSendAuth(TlenProtocol *proto) { int iqId; char text[128]; char *str = TlenPasswordHash(proto->threadData->password); - mir_snprintf(text, _countof(text), "%s%s", proto->threadData->streamId, str); + mir_snprintf(text, "%s%s", proto->threadData->streamId, str); mir_free(str); str = TlenSha1(text); char *p=TlenTextEncode(proto->threadData->username); @@ -913,7 +913,7 @@ static void TlenProcessW(XmlNode *node, ThreadData *info) char *f = TlenXmlGetAttrValue(node, "f"); if (f != NULL) { char webContactName[128]; - mir_snprintf(webContactName, _countof(webContactName), Translate("%s Web Messages"), info->proto->m_szModuleName); + mir_snprintf(webContactName, Translate("%s Web Messages"), info->proto->m_szModuleName); MCONTACT hContact = TlenHContactFromJID(info->proto, webContactName); if (hContact == NULL) { hContact = TlenDBCreateContact(info->proto, webContactName, webContactName, TRUE); @@ -1204,7 +1204,7 @@ static void TlenProcessV(XmlNode *node, ThreadData *info) char *from=TlenXmlGetAttrValue(node, "f"); if (from != NULL) { if (strchr(from, '@') == NULL) { - mir_snprintf(jid, _countof(jid), "%s@%s", from, info->server); + mir_snprintf(jid, "%s@%s", from, info->server); } else { strncpy_s(jid, from, _TRUNCATE); } -- cgit v1.2.3