change interface to Input::write_echo() to accept const std::string

This commit is contained in:
Axel Kohlmeyer
2020-06-11 10:23:44 -04:00
parent 71d3827cce
commit 7ace10238d
2 changed files with 4 additions and 4 deletions

View File

@ -309,11 +309,11 @@ char *Input::one(const std::string &single)
/* ----------------------------------------------------------------------
Send text to active echo file pointers
------------------------------------------------------------------------- */
void Input::write_echo(const char *txt)
void Input::write_echo(const std::string &txt)
{
if (me == 0) {
if (echo_screen && screen) fputs(txt,screen);
if (echo_log && logfile) fputs(txt,logfile);
if (echo_screen && screen) fputs(txt.c_str(),screen);
if (echo_log && logfile) fputs(txt.c_str(),logfile);
}
}