xo-indentlog: bugfix: increase buf size to exclude possible overrun
This commit is contained in:
parent
0fef9b03e3
commit
bdfe08a514
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue