Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Unified Diff: net/base/telnet_server.cc

Issue 2868036: Brushed up listen socket: (Closed)
Patch Set: Lint. Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/listen_socket_unittest.cc ('k') | net/net.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « net/base/listen_socket_unittest.cc ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698