From 7f6220d960a8824ef6fc070ffcf9ee6d5da4898c Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 1 Jun 2018 17:21:00 +0300 Subject: [PATCH] increase errno string buffer size --- include/spdlog/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {