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/PasteIt/src/PasteToWeb.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/PasteIt/src/PasteToWeb.cpp') diff --git a/plugins/PasteIt/src/PasteToWeb.cpp b/plugins/PasteIt/src/PasteToWeb.cpp index c57cd58c38..6c5ad07296 100644 --- a/plugins/PasteIt/src/PasteToWeb.cpp +++ b/plugins/PasteIt/src/PasteToWeb.cpp @@ -384,7 +384,7 @@ void PasteToWeb::FromFile(std::wstring file) { if (fileSize.QuadPart > 512000LL) { - mir_sntprintf(bufErr, _countof(bufErr), TranslateT("File size is %d KB, do you really want to paste such a large file?"), fileSize.LowPart / 1024); + mir_sntprintf(bufErr, TranslateT("File size is %d KB, do you really want to paste such a large file?"), fileSize.LowPart / 1024); if (MessageBox(NULL, bufErr, TranslateT("Are You sure?"), MB_YESNO | MB_ICONQUESTION) != IDYES) { CloseHandle(hFile); @@ -399,7 +399,7 @@ void PasteToWeb::FromFile(std::wstring file) mir_free(fromFileData.content); fromFileData.content = NULL; fromFileData.contentLen = 0; - mir_sntprintf(bufErr, _countof(bufErr), TranslateT("Cannot read file '%s'"), file.c_str()); + mir_sntprintf(bufErr, TranslateT("Cannot read file '%s'"), file.c_str()); error = bufErr; } } @@ -413,7 +413,7 @@ void PasteToWeb::FromFile(std::wstring file) } else { - mir_sntprintf(bufErr, _countof(bufErr), TranslateT("Cannot open file '%s'"), file.c_str()); + mir_sntprintf(bufErr, TranslateT("Cannot open file '%s'"), file.c_str()); error = bufErr; } @@ -491,7 +491,7 @@ void PasteToWeb::FromFile(std::wstring file) } else { - mir_sntprintf(bufErr, _countof(bufErr), TranslateT("File '%s' is empty"), file.c_str()); + mir_sntprintf(bufErr, TranslateT("File '%s' is empty"), file.c_str()); error = bufErr; } mir_free(fromFileData.content); -- cgit v1.2.3