diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2016-01-19 21:56:32 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2016-01-20 00:53:02 +0100 |
commit | f9fa0191ec1825f71a1547e4029a05d394cf3800 (patch) | |
tree | 304f69ac32db3d0e76d7b52333707d7e93a2ba88 | |
parent | 8a2d9c41206c156937f52d07e7a0b89f38444a44 (diff) | |
download | VeraCrypt-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.cpp | 2 |
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 ()); } |