Linux: Flush stdout explicitly when reading stdin (#1172)

Rules of automatic flushing of stdout buffer is implementation-defined
behaviour. In glibc this is automatically flushed, but we can't rely
on it for other implementations such as musl.
This commit is contained in:
Jertzukka 2023-08-12 10:18:57 +03:00 committed by GitHub
parent 5c9e135c9e
commit eb2f5f33c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1047,7 +1047,7 @@ namespace VeraCrypt
void TextUserInterface::DoShowString (const wxString &str) const
{
wcout << str.c_str();
wcout << str.c_str() << flush;
}
void TextUserInterface::DoShowWarning (const wxString &message) const