diff --git a/include/spdlog/common.h b/include/spdlog/common.h index b4228e7f..9574547c 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -159,7 +159,7 @@ public: spdlog_ex(const std::string &msg, int last_errno) { 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) {