diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-07-17 07:43:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-07-17 07:43:28 +0000 |
commit | e0c798fd4f336deba0ac88c5f71418dda624bd2e (patch) | |
tree | 220a8f28beadbd5b80a0c6d7c1155eb842e77a99 /archive_reader.cc | |
parent | Adding upstream version 0.19. (diff) | |
download | tarlz-e0c798fd4f336deba0ac88c5f71418dda624bd2e.tar.xz tarlz-e0c798fd4f336deba0ac88c5f71418dda624bd2e.zip |
Adding upstream version 0.21.upstream/0.21
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | archive_reader.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/archive_reader.cc b/archive_reader.cc index b7950ef..5e0862e 100644 --- a/archive_reader.cc +++ b/archive_reader.cc @@ -19,12 +19,7 @@ #include <algorithm> #include <cerrno> -#include <climits> -#include <cstring> -#include <string> -#include <vector> -#include <pthread.h> // for tarlz.h -#include <stdint.h> +#include <stdint.h> // for lzlib.h #include <unistd.h> #include <lzlib.h> @@ -87,7 +82,7 @@ int Archive_reader_base::parse_records( Extended & extended, if( edsize <= 0 || edsize >= 1LL << 33 || bufsize >= INT_MAX ) return 1; // overflow or no extended data if( !rbuf.resize( bufsize ) ) return 1; // extended records buffer - int retval = read( (uint8_t *)rbuf(), bufsize ); + int retval = read( rbuf.u8(), bufsize ); if( retval == 0 && !extended.parse( rbuf(), edsize, permissive ) ) retval = 2; return retval; |