increase errno string buffer size

This commit is contained in:
gabime 2018-06-01 17:21:00 +03:00
parent 8a3c858d36
commit 7f6220d960

View File

@ -159,7 +159,7 @@ public:
spdlog_ex(const std::string &msg, int last_errno) spdlog_ex(const std::string &msg, int last_errno)
{ {
std::string errno_string; std::string errno_string;
char buf[256], *buf_ptr = buf; char buf[500], *buf_ptr = buf;
if (fmt::safe_strerror(last_errno, buf_ptr, sizeof(buf)) == 0) if (fmt::safe_strerror(last_errno, buf_ptr, sizeof(buf)) == 0)
{ {