simplewallet: avoid conversion to string in input_secure_line

This commit is contained in:
stoffu 2018-12-12 18:46:17 +09:00
parent bf9ef7adb6
commit 247dab7304
No known key found for this signature in database
GPG key ID: 41DAB8343A9EC012

View file

@ -251,12 +251,12 @@ namespace
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
rdln::suspend_readline pause_readline;
#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)
{
MERROR("Failed to read secure line");