mirror of
https://github.com/matrix-construct/construct
synced 2025-03-14 05:20:17 +01:00
ircd::logger: Appease the array-bounds bean counter.
This commit is contained in:
parent
feb7524fe0
commit
310053abcf
1 changed files with 2 additions and 1 deletions
|
@ -559,7 +559,7 @@ noexcept
|
|||
|
||||
// Compose the prefix sequence into the buffer.
|
||||
std::stringstream s;
|
||||
pubsetbuf(s, buf);
|
||||
pubsetbuf(s, mutable_buffer(buf, max));
|
||||
s
|
||||
<< microdate(date)
|
||||
<< ' '
|
||||
|
@ -595,6 +595,7 @@ noexcept
|
|||
// Compose the newline after user message.
|
||||
size_t len{pos + sb.consumed()};
|
||||
assert(len + 2 <= sizeof(buf));
|
||||
len = std::min(len, max);
|
||||
buf[len++] = '\r';
|
||||
buf[len++] = '\n';
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue