aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/serializerbzip2.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/serializerbzip2.cpp b/src/serializerbzip2.cpp
index b899384..9d4dafa 100644
--- a/src/serializerbzip2.cpp
+++ b/src/serializerbzip2.cpp
@@ -53,7 +53,12 @@ void SerializerBZip2::close()
53 { 53 {
54 if( isLoading() ) 54 if( isLoading() )
55 { 55 {
56 void *unused;
57 int nUnused;
58 BZ2_bzReadGetUnused( &bzerror, bzFile, &unused, &nUnused );
56 BZ2_bzReadClose( &bzerror, bzFile ); 59 BZ2_bzReadClose( &bzerror, bzFile );
60 if( nUnused )
61 fseek( fhFile, -nUnused, SEEK_CUR );
57 } 62 }
58 else 63 else
59 { 64 {