mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-21 08:10:43 +08:00
increase errno string buffer size
This commit is contained in:
parent
8a3c858d36
commit
7f6220d960
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user