mirror of
https://github.com/monero-project/monero.git
synced 2024-11-18 00:37:43 +00:00
simplewallet: avoid conversion to string in input_secure_line
This commit is contained in:
parent
bf9ef7adb6
commit
247dab7304
1 changed files with 2 additions and 2 deletions
|
@ -251,12 +251,12 @@ namespace
|
||||||
return epee::string_tools::trim(buf);
|
return epee::string_tools::trim(buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
epee::wipeable_string input_secure_line(const std::string& prompt)
|
epee::wipeable_string input_secure_line(const char *prompt)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_READLINE
|
#ifdef HAVE_READLINE
|
||||||
rdln::suspend_readline pause_readline;
|
rdln::suspend_readline pause_readline;
|
||||||
#endif
|
#endif
|
||||||
auto pwd_container = tools::password_container::prompt(false, prompt.c_str(), false);
|
auto pwd_container = tools::password_container::prompt(false, prompt, false);
|
||||||
if (!pwd_container)
|
if (!pwd_container)
|
||||||
{
|
{
|
||||||
MERROR("Failed to read secure line");
|
MERROR("Failed to read secure line");
|
||||||
|
|
Loading…
Reference in a new issue