aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/stable/protocoltelnet.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/stable/protocoltelnet.cpp b/src/stable/protocoltelnet.cpp
index 77bc3dc..f6fbd4b 100644
--- a/src/stable/protocoltelnet.cpp
+++ b/src/stable/protocoltelnet.cpp
@@ -269,9 +269,11 @@ void Bu::ProtocolTelnet::onNewData( Bu::Client *pClient )
269 // IAC code or multibyte escape sequence or something, but then again, it 269 // IAC code or multibyte escape sequence or something, but then again, it
270 // shouldn't be called then, and really, shouldn't be, it'll be called soon 270 // shouldn't be called then, and really, shouldn't be, it'll be called soon
271 // enough, when we get the rest of that code. 271 // enough, when we get the rest of that code.
272 if( !bCanonical ) 272 if( !bCanonical && !sDataBuf.isEmpty() )
273 { 273 {
274 gotData( sDataBuf ); 274 Bu::String sDat = sDataBuf;
275 sDataBuf.clear();
276 gotData( sDat );
275 } 277 }
276} 278}
277 279