xo-indentlog: bugfix: increase buf size to exclude possible overrun

This commit is contained in:
Roland Conybeare 2024-09-13 19:55:35 -05:00
commit bdfe08a514

View file

@ -259,7 +259,7 @@ namespace xo {
auto [t0_tm, t0_usec] = utc_split_tm(t0);
/* no std::format in clang11 afaict */
char usec_buf[8];
char usec_buf[15];
snprintf(usec_buf, sizeof(usec_buf), "%06d", t0_usec);