From 5ae0b88a215294435e0c26c7af9ee24f54995b69 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 7 Jul 2015 19:36:25 +0000 Subject: Fixed the buffering code in ProtocolTelnet to clear the buffer before handing you the next line. --- src/stable/protocoltelnet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stable/protocoltelnet.cpp b/src/stable/protocoltelnet.cpp index 153af57..d6e22d1 100644 --- a/src/stable/protocoltelnet.cpp +++ b/src/stable/protocoltelnet.cpp @@ -224,8 +224,9 @@ void Bu::ProtocolTelnet::onNewData( Bu::Client *pClient ) if( bc2 == CH_NUL || bc2 == CH_LF ) { onCtlChar( bc ); - gotLine( sDataBuf ); + Bu::String sLine = sDataBuf; sDataBuf.clear(); + gotLine( sLine ); } pClient->seek( 1 ); } -- cgit v1.2.3