aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bzip2.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/bzip2.cpp b/src/bzip2.cpp
index c367cff..c6742f2 100644
--- a/src/bzip2.cpp
+++ b/src/bzip2.cpp
@@ -7,7 +7,6 @@
7 7
8#include "bu/bzip2.h" 8#include "bu/bzip2.h"
9#include "bu/exceptions.h" 9#include "bu/exceptions.h"
10#define BU_TRACE
11#include "bu/trace.h" 10#include "bu/trace.h"
12 11
13using namespace Bu; 12using namespace Bu;
@@ -123,11 +122,10 @@ void Bu::BZip2::bzError( int code )
123size_t Bu::BZip2::read( void *pData, size_t nBytes ) 122size_t Bu::BZip2::read( void *pData, size_t nBytes )
124{ 123{
125 TRACE( pData, nBytes ); 124 TRACE( pData, nBytes );
126 printf("READ!!!\n");
127 if( !bzState.state ) 125 if( !bzState.state )
128 { 126 {
129 bReading = true; 127 bReading = true;
130 BZ2_bzDecompressInit( &bzState, 7, 0 ); 128 BZ2_bzDecompressInit( &bzState, 0, 0 );
131 bzState.next_in = pBuf; 129 bzState.next_in = pBuf;
132 bzState.avail_in = 0; 130 bzState.avail_in = 0;
133 } 131 }