Fix a valgrind issue in a unit test in log_channel_test where the buffer was not being null terminated.

This commit is contained in:
faluco 2021-03-17 13:03:19 +01:00 committed by faluco
parent eb27efd867
commit 358c4de0bd
1 changed files with 1 additions and 0 deletions

View File

@ -288,6 +288,7 @@ when_logging_with_small_string_then_filled_in_log_entry_is_pushed_into_the_backe
small_str_buffer buf;
fmt::format_to(buf, "A {} {} {}", 1, 2, 3);
buf.push_back('\0');
log(std::move(buf));
ASSERT_EQ(backend.push_invocation_count(), 1);