1
0
Fork 0
forked from lthn/blockchain

fixed input password bug (#536)

This commit is contained in:
Dmitry Matsiukhov 2025-07-03 12:55:40 +03:00 committed by GitHub
parent 6a4d6e1fc6
commit 187a830f58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();
}
}