From 12718514fb673dbb72f7d93ea3bb34c9574bd69a Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 26 Jul 2013 08:46:45 +0000 Subject: replace sprintf to mir_snprintf (part 7) removed not used files git-svn-id: http://svn.miranda-ng.org/main/trunk@5490 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 fa251a22f0..308f4d4930 100644 --- a/plugins/PasteIt/src/PasteToWeb.cpp +++ b/plugins/PasteIt/src/PasteToWeb.cpp @@ -386,7 +386,7 @@ void PasteToWeb::FromFile(std::wstring file) { if(fileSize.QuadPart > 512000LL) { - _stprintf_s(bufErr, 1024, TranslateT("File size is %dKB, do you realy want to paste such large file?"), fileSize.LowPart / 1024); + mir_sntprintf(bufErr, 1024, TranslateT("File size is %dKB, do you realy want to paste such large file?"), fileSize.LowPart / 1024); if(MessageBox(NULL, bufErr, TranslateT("Are You sure?"), MB_YESNO | MB_ICONQUESTION) != IDYES) { CloseHandle(hFile); @@ -401,7 +401,7 @@ void PasteToWeb::FromFile(std::wstring file) mir_free(fromFileData.content); fromFileData.content = NULL; fromFileData.contentLen = 0; - _stprintf_s(bufErr, 1024, TranslateT("Cannot read file '%s'"), file.c_str()); + mir_sntprintf(bufErr, 1024, TranslateT("Cannot read file '%s'"), file.c_str()); error = bufErr; } } @@ -415,7 +415,7 @@ void PasteToWeb::FromFile(std::wstring file) } else { - _stprintf_s(bufErr, 1024, TranslateT("Cannot open file '%s'"), file.c_str()); + mir_sntprintf(bufErr, 1024, TranslateT("Cannot open file '%s'"), file.c_str()); error = bufErr; } @@ -493,7 +493,7 @@ void PasteToWeb::FromFile(std::wstring file) } else { - _stprintf_s(bufErr, 1024, TranslateT("File '%s' is empty"), file.c_str()); + mir_sntprintf(bufErr, 1024, TranslateT("File '%s' is empty"), file.c_str()); error = bufErr; } mir_free(fromFileData.content); -- cgit v1.2.3