snprinf for msc ver

This commit is contained in:
gabime
2014-03-02 16:31:13 +02:00
parent b396ff85a7
commit 2ac214aed8
5 changed files with 18 additions and 13 deletions

View File

@@ -42,7 +42,7 @@ private:
inline void c11log::formatters::default_formatter::_format_time(const log_clock::time_point& tp, std::ostream &dest)
{
{
auto tm = details::os::localtime(log_clock::to_time_t(tp));
char buff[64];
int size = snprintf(buff, sizeof(buff), "[%d-%02d-%02d %02d:%02d:%02d]",