1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00

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

View File

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