VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/UserInterface.cpp
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-01-19 20:56:32 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-01-19 23:53:02 (GMT)
commitf9fa0191ec1825f71a1547e4029a05d394cf3800 (patch)
tree304f69ac32db3d0e76d7b52333707d7e93a2ba88 /src/Main/UserInterface.cpp
parent8a2d9c41206c156937f52d07e7a0b89f38444a44 (diff)
downloadVeraCrypt-f9fa0191ec1825f71a1547e4029a05d394cf3800.zip
VeraCrypt-f9fa0191ec1825f71a1547e4029a05d394cf3800.tar.gz
Linux/MacOSX:solve issue of --stdin option not handling correctly passwords that contain a space character (reported and fixed by Codeplex user horsley1953)
Diffstat (limited to 'src/Main/UserInterface.cpp')
-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 c7d975d..d491280 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 ());
}