aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorstoffu <stoffu@protonmail.ch>2018-12-12 18:46:17 +0900
committerstoffu <stoffu@protonmail.ch>2019-01-18 09:48:52 +0900
commit247dab7304331b876123313a29c8cd322a703a61 (patch)
tree7c0310c44f948af7d524f55f7c4b2db0e8a02472 /src
parentsimplewallet: factor yesno hint into input_line (diff)
downloadmonero-247dab7304331b876123313a29c8cd322a703a61.tar.xz
simplewallet: avoid conversion to string in input_secure_line
Diffstat (limited to 'src')
-rw-r--r--src/simplewallet/simplewallet.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 8e19a6823..181587054 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -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");