diff options
author | Mike Buland <eichlan@xagasoft.com> | 2015-07-07 19:36:25 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2015-07-07 19:36:25 +0000 |
commit | 5ae0b88a215294435e0c26c7af9ee24f54995b69 (patch) | |
tree | 47630dcbef7ab4ec472502ef0630a2142f364907 /src/stable | |
parent | 35fc3769ceb58328f124dcb1c24b62a35910b0b3 (diff) | |
download | libbu++-5ae0b88a215294435e0c26c7af9ee24f54995b69.tar.gz libbu++-5ae0b88a215294435e0c26c7af9ee24f54995b69.tar.bz2 libbu++-5ae0b88a215294435e0c26c7af9ee24f54995b69.tar.xz libbu++-5ae0b88a215294435e0c26c7af9ee24f54995b69.zip |
Fixed the buffering code in ProtocolTelnet to clear the buffer before handing
you the next line.
Diffstat (limited to '')
-rw-r--r-- | src/stable/protocoltelnet.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 ) | |||
224 | if( bc2 == CH_NUL || bc2 == CH_LF ) | 224 | if( bc2 == CH_NUL || bc2 == CH_LF ) |
225 | { | 225 | { |
226 | onCtlChar( bc ); | 226 | onCtlChar( bc ); |
227 | gotLine( sDataBuf ); | 227 | Bu::String sLine = sDataBuf; |
228 | sDataBuf.clear(); | 228 | sDataBuf.clear(); |
229 | gotLine( sLine ); | ||
229 | } | 230 | } |
230 | pClient->seek( 1 ); | 231 | pClient->seek( 1 ); |
231 | } | 232 | } |