diff options
Diffstat (limited to 'delete_lz.cc')
-rw-r--r-- | delete_lz.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/delete_lz.cc b/delete_lz.cc index b67efa0..a9c31ad 100644 --- a/delete_lz.cc +++ b/delete_lz.cc @@ -20,7 +20,7 @@ #include <cctype> #include <cerrno> #include <cstdio> -#include <stdint.h> // for lzlib.h +#include <stdint.h> // for lzlib.h #include <unistd.h> #include <lzlib.h> @@ -35,8 +35,7 @@ */ int delete_members_lz( const Cl_options & cl_opts, const Archive_descriptor & ad, - std::vector< char > & name_pending, - const int outfd ) + std::vector< char > & name_pending, const int outfd ) { Archive_reader_i ar( ad ); // indexed reader Resizable_buffer rbuf; @@ -124,7 +123,8 @@ int delete_members_lz( const Cl_options & cl_opts, if( istream_pos == 0 ) { if( !safe_seek( outfd, size ) ) { retval = 1; goto done; } } else if( !safe_seek( ad.infd, istream_pos ) || - !copy_file( ad.infd, outfd, size ) ) { retval = 1; goto done; } + !copy_file( ad.infd, outfd, ad.namep, size ) ) + { retval = 1; goto done; } } istream_pos = ad.lzip_index.mblock( i ).end(); // member end } |