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/SplashScreen/src/splash.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/SplashScreen/src/splash.cpp') diff --git a/plugins/SplashScreen/src/splash.cpp b/plugins/SplashScreen/src/splash.cpp index 6550f5fda0..cab40ef640 100644 --- a/plugins/SplashScreen/src/splash.cpp +++ b/plugins/SplashScreen/src/splash.cpp @@ -42,9 +42,9 @@ LRESULT CALLBACK SplashWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM #ifdef _DEBUG TCHAR b[40]; - mir_sntprintf(b, _countof(b), _T("%d"), wParam); + mir_sntprintf(b, _T("%d"), wParam); logMessage(_T("Timer ID"), b); - mir_sntprintf(b, _countof(b), _T("%d"), options.showtime); + mir_sntprintf(b, _T("%d"), options.showtime); logMessage(_T("ShowTime value"), b); #endif @@ -229,7 +229,7 @@ void __cdecl SplashThread(void *arg) TCHAR verString[256] = { 0 }; TCHAR *mirandaVerString = mir_a2t(szVersion); - mir_sntprintf(verString, _countof(verString), _T("%s%s"), szPrefix, mirandaVerString); + mir_sntprintf(verString, _T("%s%s"), szPrefix, mirandaVerString); mir_free(mirandaVerString); LOGFONT lf = { 0 }; lf.lfHeight = 14; @@ -327,7 +327,7 @@ BOOL ShowSplash(BOOL bpreview) timeout = options.showtime; #ifdef _DEBUG TCHAR b[40]; - mir_sntprintf(b, _countof(b), _T("%d"), options.showtime); + mir_sntprintf(b, _T("%d"), options.showtime); logMessage(_T("Timeout"), b); #endif } -- cgit v1.2.3