VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJertzukka <Jertzukka@gmail.com>2023-08-12 10:18:57 +0300
committerGitHub <noreply@github.com>2023-08-12 09:18:57 +0200
commiteb2f5f33c96840efef46e97d994182a25540bb17 (patch)
treeb1beded9eaea0ee683fececb6c781bd07877f2d0
parent5c9e135c9e1b8fb3832dbebaecdadd073c054864 (diff)
downloadVeraCrypt-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.cpp2
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