diff --git a/example/example.cpp b/example/example.cpp index 2a18677a..0bc838bd 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -143,7 +143,7 @@ void async_example() #include "spdlog/fmt/bin_to_hex.h" void binary_example() { - std::vector buf; + std::vector buf(80); for (int i = 0; i < 80; i++) { buf.push_back(static_cast(i & 0xff));