diff options
Diffstat (limited to 'net/base/telnet_server.cc')
-rw-r--r-- | net/base/telnet_server.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/base/telnet_server.cc b/net/base/telnet_server.cc index 33eb5b1..5b027d7 100644 --- a/net/base/telnet_server.cc +++ b/net/base/telnet_server.cc @@ -197,7 +197,9 @@ void TelnetServer::StateMachineStep(unsigned char c) { case EXPECTING_NEW_LINE: if (c == TelnetProtocol::LF) { Send("\n", 1); - socket_delegate_->DidRead(this, command_line_); + socket_delegate_->DidRead(this, + command_line_.c_str(), + command_line_.length()); command_line_ = ""; } input_state_ = NOT_IN_IAC_OR_ESC_SEQUENCE; |