@@ -906,8 +906,7 @@ struct VM {
906906 constexpr std::size_t buffer_size = sizeof (i32 ) * buffer.size ();
907907 std::array<char , 64 > charbuffer{};
908908
909- std::string brand = " " ;
910- brand.reserve (48 ); // 3 leafs 16 each
909+ std::string brand (48 , ' \0 ' ); // 3 leafs 16 each
911910
912911 constexpr std::array<u32 , 3 > ids = { { cpu::leaf::brand1, cpu::leaf::brand2, cpu::leaf::brand3 } };
913912 for (const u32 & id : ids) {
@@ -11511,12 +11510,16 @@ struct VM {
1151111510 const std::string inside_vm = " Running inside" ;
1151211511#endif
1151311512
11514- auto make_conclusion = [&](std::string_view category) -> std::string {
11513+ #if (CPP >= 17)
11514+ auto make_conclusion = [&](const std::string_view category) -> std::string {
11515+ #else
11516+ auto make_conclusion = [&](const std::string &category) -> std::string {
11517+ #endif
1151511518 // this basically just fixes the grammatical syntax
1151611519 // by either having "a" or "an" before the VM brand
11517- // name, like it would look weird if the conclusion
11520+ // name. Like it would look weird if the conclusion
1151811521 // message was "an VirtualBox" or "a Anubis", so this
11519- // section fixes that issue.
11522+ // lambda fixes that issue.
1152011523 std::string article = " " ;
1152111524
1152211525 if (
0 commit comments