From f9fa0191ec1825f71a1547e4029a05d394cf3800 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Tue, 19 Jan 2016 21:56:32 +0100 Subject: Linux/MacOSX:solve issue of --stdin option not handling correctly passwords that contain a space character (reported and fixed by Codeplex user horsley1953) --- src/Main/UserInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Main/UserInterface.cpp') 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 ()); } -- cgit v1.2.3