mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08:26 -06: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:
@@ -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 ());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user