aboutsummaryrefslogtreecommitdiffstats
path: root/main/truecrypt/flush-stdout.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/truecrypt/flush-stdout.patch')
-rw-r--r--main/truecrypt/flush-stdout.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/truecrypt/flush-stdout.patch b/main/truecrypt/flush-stdout.patch
new file mode 100644
index 0000000000..24809bae10
--- /dev/null
+++ b/main/truecrypt/flush-stdout.patch
@@ -0,0 +1,11 @@
+--- truecrypt-7.1a-source/Main/TextUserInterface.cpp.orig 2017-03-10 14:07:32.880449234 +0200
++++ truecrypt-7.1a-source/Main/TextUserInterface.cpp 2017-03-10 14:11:28.843128874 +0200
+@@ -1247,6 +1247,8 @@
+ if (!TextInputStream.get() || feof (stdin) || ferror (stdin))
+ throw UserAbort (SRC_POS);
+
++ wcout.flush();
++
+ line = TextInputStream->ReadLine();
+
+ if (ferror (stdin) || (line.empty() && feof (stdin)))