From 745a9ec043fdbe91faf26a3cfec4ecd12355f94a Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 30 Jul 2009 20:08:24 +0000 Subject: I think I fixed a bug in Bu::Base64, we'll see what happens. --- src/tests/base64.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/tests') diff --git a/src/tests/base64.cpp b/src/tests/base64.cpp index eaf6a16..3122d5c 100644 --- a/src/tests/base64.cpp +++ b/src/tests/base64.cpp @@ -31,12 +31,12 @@ int main( int argc, char *argv[] ) Bu::File fOut( argv[1], Bu::File::WriteNew ); Bu::Base64 bIn( fIn ); - char buf[900]; + char buf[16]; for(;;) { - int iRead = bIn.read( buf, 900 ); + int iRead = bIn.read( buf, 16 ); fOut.write( buf, iRead ); - if( iRead < 900 ) + if( iRead < 16 ) break; } } -- cgit v1.2.3