diff options
Diffstat (limited to 'repair.cc')
-rw-r--r-- | repair.cc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -24,6 +24,7 @@ #include <string> #include <vector> #include <stdint.h> +#include <unistd.h> #include <sys/stat.h> #include "lzip.h" @@ -38,7 +39,7 @@ int repair_file( const std::string & input_filename, const long long isize = lseek( infd, 0, SEEK_END ); if( isize < 0 ) { show_error( "Input file is not seekable", errno ); return 1; } - if( isize < 36 ) + if( isize < min_member_size ) { show_error( "Input file is too short." ); return 2; } if( !verify_single_member( infd, isize ) ) return 2; if( lseek( infd, 0, SEEK_SET ) < 0 ) |