| Index: net/base/telnet_server.cc
|
| diff --git a/net/base/telnet_server.cc b/net/base/telnet_server.cc
|
| index 33eb5b11daefd8d693209684646e284aa80c906e..5b027d7a2a57312f6c4b59771929c3748c07967f 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;
|
|
|