mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-28 14:03:29 +01:00
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:
parent
8a2d9c4120
commit
f9fa0191ec
@ -903,7 +903,7 @@ namespace VeraCrypt
|
|||||||
if (Preferences.UseStandardInput)
|
if (Preferences.UseStandardInput)
|
||||||
{
|
{
|
||||||
wstring pwdInput;
|
wstring pwdInput;
|
||||||
wcin >> pwdInput;
|
getline(wcin, pwdInput);
|
||||||
|
|
||||||
cmdLine.ArgPassword = ToUTF8Password ( pwdInput.c_str (), pwdInput.size ());
|
cmdLine.ArgPassword = ToUTF8Password ( pwdInput.c_str (), pwdInput.size ());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user