diff options
author | Jertzukka <Jertzukka@gmail.com> | 2023-08-12 10:18:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-12 09:18:57 +0200 |
commit | eb2f5f33c96840efef46e97d994182a25540bb17 (patch) | |
tree | b1beded9eaea0ee683fececb6c781bd07877f2d0 | |
parent | 5c9e135c9e1b8fb3832dbebaecdadd073c054864 (diff) | |
download | VeraCrypt-eb2f5f33c96840efef46e97d994182a25540bb17.tar.gz VeraCrypt-eb2f5f33c96840efef46e97d994182a25540bb17.zip |
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.
-rw-r--r-- | src/Main/TextUserInterface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Main/TextUserInterface.cpp b/src/Main/TextUserInterface.cpp index 37b346bd..637d5caa 100644 --- a/src/Main/TextUserInterface.cpp +++ b/src/Main/TextUserInterface.cpp @@ -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 |