Commit 7f6220d9 authored by gabime's avatar gabime

increase errno string buffer size

parent 8a3c858d
...@@ -159,7 +159,7 @@ public: ...@@ -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)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment