diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-07-26 08:46:45 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-07-26 08:46:45 +0000 |
commit | 12718514fb673dbb72f7d93ea3bb34c9574bd69a (patch) | |
tree | 91569255bd22163c21eb9f22ceb388db16f53e19 /plugins/Dbx_tree/src/Logger.cpp | |
parent | 3856c86d711275b80e09371cad10b8b828a5879a (diff) |
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
Diffstat (limited to 'plugins/Dbx_tree/src/Logger.cpp')
-rw-r--r-- | plugins/Dbx_tree/src/Logger.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Dbx_tree/src/Logger.cpp b/plugins/Dbx_tree/src/Logger.cpp index 7ca9452460..7b732b6cfd 100644 --- a/plugins/Dbx_tree/src/Logger.cpp +++ b/plugins/Dbx_tree/src/Logger.cpp @@ -53,7 +53,7 @@ void CLogger::Append(const TCHAR * File, const TCHAR * Function, const int Line, TCHAR msgbuf[4096];
va_list va;
va_start(va, Message);
- len += _vstprintf_s(msgbuf, Message, va);
+ len += mir_vsntprintf(msgbuf, SIZEOF(msgbuf), Message, va);
va_end(va);
TCHAR * message;
@@ -65,12 +65,12 @@ void CLogger::Append(const TCHAR * File, const TCHAR * Function, const int Line, len += /*_tcslen(File) + 10 +*/ _tcslen(Function) + 32 + 12 + 1;
message = new TCHAR[len];
- m_Length += _stprintf_s(message, len, _T("[%s - %s]\n%s\n\nSystem Error Code: %d\n%s\n\n"), timebuf, /*File, Line, */ Function, msgbuf, SysState, syserror) + 1;
+ m_Length += mir_sntprintf(message, len, _T("[%s - %s]\n%s\n\nSystem Error Code: %d\n%s\n\n"), timebuf, /*File, Line, */ Function, msgbuf, SysState, syserror) + 1;
} else {
len += /*_tcslen(File) + 10 +*/ _tcslen(Function) + 12 + 1;
message = new TCHAR[len];
- m_Length += _stprintf_s(message, len, _T("[%s - %s]\n%s\n\n"), timebuf, /*File, Line, */Function, msgbuf) + 1;
+ m_Length += mir_sntprintf(message, len, _T("[%s - %s]\n%s\n\n"), timebuf, /*File, Line, */Function, msgbuf) + 1;
}
m_Messages.push_back(message);
}
|