forked from lthn/blockchain
fixed input password bug (#536)
This commit is contained in:
parent
6a4d6e1fc6
commit
187a830f58
1 changed files with 4 additions and 1 deletions
|
|
@ -232,7 +232,10 @@ namespace tools
|
|||
else
|
||||
{
|
||||
m_password.push_back(ch);
|
||||
std::cout << (char_to_replace_user_input != '\0' ? char_to_replace_user_input : ch);
|
||||
std::cout.put((
|
||||
char_to_replace_user_input != '\0' ?
|
||||
char_to_replace_user_input : static_cast<char>(ch))
|
||||
).flush();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue