From 03bec4f98409047fe365b26a6cd5fda0b43ebef0 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 4 Jan 2025 18:28:49 +0200 Subject: [PATCH] Refactored error handler --- src/details/default_err_handler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/details/default_err_handler.cpp b/src/details/default_err_handler.cpp index cd4394b6c..fb91cf44b 100644 --- a/src/details/default_err_handler.cpp +++ b/src/details/default_err_handler.cpp @@ -12,7 +12,7 @@ namespace details { void default_err_handler::handle_ex(const std::string &origin, const source_loc &loc, const std::exception &ex) const { std::lock_guard lk{mutex_}; const auto tm_time = os::localtime(); - char date_buf[128]; + char date_buf[64]; std::strftime(date_buf, sizeof(date_buf), "%Y-%m-%d %H:%M:%S", &tm_time); std::string msg; if (loc.empty()) {