VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-01-19 21:56:32 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-01-20 00:53:02 +0100
commitf9fa0191ec1825f71a1547e4029a05d394cf3800 (patch)
tree304f69ac32db3d0e76d7b52333707d7e93a2ba88
parent8a2d9c41206c156937f52d07e7a0b89f38444a44 (diff)
downloadVeraCrypt-f9fa0191ec1825f71a1547e4029a05d394cf3800.tar.gz
VeraCrypt-f9fa0191ec1825f71a1547e4029a05d394cf3800.zip
Linux/MacOSX:solve issue of --stdin option not handling correctly passwords that contain a space character (reported and fixed by Codeplex user horsley1953)
-rw-r--r--src/Main/UserInterface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Main/UserInterface.cpp b/src/Main/UserInterface.cpp
index c7d975de..d491280b 100644
--- a/src/Main/UserInterface.cpp
+++ b/src/Main/UserInterface.cpp
@@ -903,7 +903,7 @@ namespace VeraCrypt
if (Preferences.UseStandardInput)
{
wstring pwdInput;
- wcin >> pwdInput;
+ getline(wcin, pwdInput);
cmdLine.ArgPassword = ToUTF8Password ( pwdInput.c_str (), pwdInput.size ());
}