drop extra \0
This commit is contained in:
parent
a5492fead0
commit
6084c0ff3c
@ -529,13 +529,12 @@ void vprint(std::FILE* f, const text_style& ts, const S& format,
|
||||
basic_format_args<buffer_context<type_identity_t<Char>>> args) {
|
||||
basic_memory_buffer<Char> buf;
|
||||
detail::vformat_to(buf, ts, to_string_view(format), args);
|
||||
buf.push_back(Char(0));
|
||||
#ifdef _WIN32
|
||||
if (detail::is_utf8())
|
||||
detail::print(f, basic_string_view<Char>(buf.begin(), buf.size()));
|
||||
else
|
||||
#endif
|
||||
else {
|
||||
buf.push_back(Char(0));
|
||||
detail::fputs(buf.data(), f);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user