mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-28 17:19:34 +08:00
snprinf for msc ver
This commit is contained in:
@@ -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]",
|
||||
|
Reference in New Issue
Block a user