Linux/MacOSX:solve issue of --stdin option not handling correctly passwords that contain a space character (reported and fixed by Codeplex user horsley1953)

This commit is contained in:
Mounir IDRASSI 2016-01-19 21:56:32 +01:00
parent 8a2d9c4120
commit f9fa0191ec

View File

@ -903,7 +903,7 @@ namespace VeraCrypt
if (Preferences.UseStandardInput)
{
wstring pwdInput;
wcin >> pwdInput;
getline(wcin, pwdInput);
cmdLine.ArgPassword = ToUTF8Password ( pwdInput.c_str (), pwdInput.size ());
}