summaryrefslogtreecommitdiff
path: root/src/tests/rot13.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/rot13.cpp')
-rw-r--r--src/tests/rot13.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tests/rot13.cpp b/src/tests/rot13.cpp
index 2326888..03ba385 100644
--- a/src/tests/rot13.cpp
+++ b/src/tests/rot13.cpp
@@ -67,8 +67,12 @@ public:
67 67
68 void onNewData( Bu::Client *pClient ) 68 void onNewData( Bu::Client *pClient )
69 { 69 {
70 pClient->write( pClient->getInput().getStr(), pClient->getInputSize() ); 70 char buf[1024];
71 pClient->seek( pClient->getInputSize() ); 71 while( pClient->hasInput() )
72 {
73 int iAmnt = pClient->read( buf, 1024 );
74 pClient->write( buf, iAmnt );
75 }
72 } 76 }
73}; 77};
74 78