From 74eda2bc75b3b1b9fa6edc25639147b384c22b33 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sun, 28 Apr 2024 14:47:01 -0400 Subject: [PATCH] xo-indentlog: bugfix: + array size to satisfy compiler warning --- include/xo/indentlog/timeutil/timeutil.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/xo/indentlog/timeutil/timeutil.hpp b/include/xo/indentlog/timeutil/timeutil.hpp index 5e57aeb0..f1b2a938 100644 --- a/include/xo/indentlog/timeutil/timeutil.hpp +++ b/include/xo/indentlog/timeutil/timeutil.hpp @@ -259,7 +259,7 @@ namespace xo { auto [t0_tm, t0_usec] = utc_split_tm(t0); /* no std::format in clang11 afaict */ - char usec_buf[7]; + char usec_buf[8]; snprintf(usec_buf, sizeof(usec_buf), "%06d", t0_usec);