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/Variables/src/parse_system.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/Variables/src/parse_system.cpp') diff --git a/plugins/Variables/src/parse_system.cpp b/plugins/Variables/src/parse_system.cpp index df01089e48..9e92647542 100644 --- a/plugins/Variables/src/parse_system.cpp +++ b/plugins/Variables/src/parse_system.cpp @@ -105,7 +105,7 @@ static TCHAR *parseCpuLoad(ARGUMENTSINFO *ai) pdhStatus = PdhCloseQuery(hQuery); return NULL; } - mir_sntprintf(szVal, _countof(szVal), _T("%.0f"), cValue.doubleValue); + mir_sntprintf(szVal, _T("%.0f"), cValue.doubleValue); //PdhRemoveCounter(*hCounter); PdhCloseQuery(hQuery); mir_free(szCounter); @@ -282,7 +282,7 @@ static TCHAR *parseDiffTime(ARGUMENTSINFO *ai) return NULL; diff = difftime(mktime(&t1), mktime(&t0)); - mir_sntprintf(szTime, _countof(szTime), _T("%.0f"), diff); + mir_sntprintf(szTime, _T("%.0f"), diff); return mir_tstrdup(szTime); } @@ -819,7 +819,7 @@ static TCHAR *parseUpTime(ARGUMENTSINFO *ai) } TCHAR szVal[32]; - mir_sntprintf(szVal, _countof(szVal), _T("%u"), cValue.largeValue); + mir_sntprintf(szVal, _T("%u"), cValue.largeValue); PdhRemoveCounter(hCounter); PdhCloseQuery(hQuery); return mir_tstrdup(szVal); -- cgit v1.2.3