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/BasicHistory/src/ExportManager.cpp | 4 ++-- plugins/BasicHistory/src/PlainHtmlExport.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/BasicHistory/src') diff --git a/plugins/BasicHistory/src/ExportManager.cpp b/plugins/BasicHistory/src/ExportManager.cpp index 83c4a2ba7e..c5c01b4ac2 100644 --- a/plugins/BasicHistory/src/ExportManager.cpp +++ b/plugins/BasicHistory/src/ExportManager.cpp @@ -40,9 +40,9 @@ std::wstring GetFile(const TCHAR* ext, HWND hwnd, bool open) TCHAR extUpper[32]; _tcscpy_s(extUpper, ext); extUpper[0] = std::toupper(ext[0], loc); - _stprintf_s(filter, TranslateT("%s Files (*.%s)"), extUpper, ext); + mir_sntprintf(filter, SIZEOF(filter), TranslateT("%s Files (*.%s)"), extUpper, ext); size_t len = _tcslen(filter) + 1; - _stprintf_s(filter + len, 512 - len, TranslateT("*.%s"), ext); + mir_sntprintf(filter + len, 512 - len, TranslateT("*.%s"), ext); len += _tcslen(filter + len); filter[++len] = 0; TCHAR stzFilePath[1024]; diff --git a/plugins/BasicHistory/src/PlainHtmlExport.cpp b/plugins/BasicHistory/src/PlainHtmlExport.cpp index 050b4e457e..ca0e110822 100644 --- a/plugins/BasicHistory/src/PlainHtmlExport.cpp +++ b/plugins/BasicHistory/src/PlainHtmlExport.cpp @@ -83,7 +83,7 @@ void PlainHtmlExport::WriteGroup(bool isMe, const std::wstring &time, const std: { TCHAR buf[256]; EXP_FILE << _T("
\n"); - _stprintf_s(buf, TranslateT("Conversation started at %s"), time.c_str()); + mir_sntprintf(buf, SIZEOF(buf), TranslateT("Conversation started at %s"), time.c_str()); EXP_FILE << _T("
") << buf << _T("
\n"); EXP_FILE << _T("
\n"); } -- cgit v1.2.3