diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-07-30 20:08:24 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-07-30 20:08:24 +0000 |
commit | 745a9ec043fdbe91faf26a3cfec4ecd12355f94a (patch) | |
tree | 9fb5a4c3223050ac0ea938163438a82dd44c50af /src/tests/base64.cpp | |
parent | 3f0f30442de297859cccc18f28db83b4e755d36f (diff) | |
download | libbu++-745a9ec043fdbe91faf26a3cfec4ecd12355f94a.tar.gz libbu++-745a9ec043fdbe91faf26a3cfec4ecd12355f94a.tar.bz2 libbu++-745a9ec043fdbe91faf26a3cfec4ecd12355f94a.tar.xz libbu++-745a9ec043fdbe91faf26a3cfec4ecd12355f94a.zip |
I think I fixed a bug in Bu::Base64, we'll see what happens.
Diffstat (limited to '')
-rw-r--r-- | src/tests/base64.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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[] ) | |||
31 | Bu::File fOut( argv[1], Bu::File::WriteNew ); | 31 | Bu::File fOut( argv[1], Bu::File::WriteNew ); |
32 | Bu::Base64 bIn( fIn ); | 32 | Bu::Base64 bIn( fIn ); |
33 | 33 | ||
34 | char buf[900]; | 34 | char buf[16]; |
35 | for(;;) | 35 | for(;;) |
36 | { | 36 | { |
37 | int iRead = bIn.read( buf, 900 ); | 37 | int iRead = bIn.read( buf, 16 ); |
38 | fOut.write( buf, iRead ); | 38 | fOut.write( buf, iRead ); |
39 | if( iRead < 900 ) | 39 | if( iRead < 16 ) |
40 | break; | 40 | break; |
41 | } | 41 | } |
42 | } | 42 | } |