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 --- plugins/Msg_Export/src/utils.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/Msg_Export/src/utils.cpp') diff --git a/plugins/Msg_Export/src/utils.cpp b/plugins/Msg_Export/src/utils.cpp index f078536f62..2cc790b844 100755 --- a/plugins/Msg_Export/src/utils.cpp +++ b/plugins/Msg_Export/src/utils.cpp @@ -464,7 +464,7 @@ bool bWriteHexToFile(HANDLE hFile, void * pData, int nSize) char cBuf[10]; BYTE *p = (BYTE*)pData; for (int n = 0; n < nSize; n++) { - mir_snprintf(cBuf, _countof(cBuf), "%.2X ", p[n]); + mir_snprintf(cBuf, "%.2X ", p[n]); if (!bWriteToFile(hFile, cBuf, 3)) return false; } @@ -702,7 +702,7 @@ void ReplaceDefines(MCONTACT hContact, tstring & sTarget) tstring sReplaceUin; if (dwUIN) { TCHAR sTmp[20]; - mir_sntprintf(sTmp, _countof(sTmp), _T("%d"), dwUIN); + mir_sntprintf(sTmp, _T("%d"), dwUIN); sReplaceUin = sTmp; } else sReplaceUin = FileNickFromHandle(hContact); @@ -784,11 +784,11 @@ void ReplaceTimeVariables(tstring &sRet) GetLocalTime(&stTime); TCHAR sTmp[20]; - mir_sntprintf(sTmp, _countof(sTmp), _T("%d"), stTime.wYear); + mir_sntprintf(sTmp, _T("%d"), stTime.wYear); ReplaceAll(sRet, _T("%year%"), sTmp); - mir_sntprintf(sTmp, _countof(sTmp), _T("%.2d"), stTime.wMonth); + mir_sntprintf(sTmp, _T("%.2d"), stTime.wMonth); ReplaceAll(sRet, _T("%month%"), sTmp); - mir_sntprintf(sTmp, _countof(sTmp), _T("%.2d"), stTime.wDay); + mir_sntprintf(sTmp, _T("%.2d"), stTime.wDay); ReplaceAll(sRet, _T("%day%"), sTmp); } } -- cgit v1.2.3