summaryrefslogtreecommitdiff
path: root/archival/libunarchive
diff options
context:
space:
mode:
Diffstat (limited to 'archival/libunarchive')
-rw-r--r--archival/libunarchive/decompress_unzip.c1
-rw-r--r--archival/libunarchive/get_header_tar.c5
2 files changed, 4 insertions, 2 deletions
diff --git a/archival/libunarchive/decompress_unzip.c b/archival/libunarchive/decompress_unzip.c
index 0572bee68..04d6f1556 100644
--- a/archival/libunarchive/decompress_unzip.c
+++ b/archival/libunarchive/decompress_unzip.c
@@ -1178,6 +1178,7 @@ unpack_gz_stream(int in, int out)
1178 ALLOC_STATE; 1178 ALLOC_STATE;
1179 bytebuffer_max = 0x8000; 1179 bytebuffer_max = 0x8000;
1180 bytebuffer = xmalloc(bytebuffer_max); 1180 bytebuffer = xmalloc(bytebuffer_max);
1181 gunzip_src_fd = in;
1181 1182
1182 again: 1183 again:
1183 if (!check_header_gzip(PASS_STATE_ONLY)) { 1184 if (!check_header_gzip(PASS_STATE_ONLY)) {
diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c
index e8ef92994..bbf088cd8 100644
--- a/archival/libunarchive/get_header_tar.c
+++ b/archival/libunarchive/get_header_tar.c
@@ -59,8 +59,9 @@ char get_header_tar(archive_handle_t *archive_handle)
59 char chksum[8]; /* 148-155 */ 59 char chksum[8]; /* 148-155 */
60 char typeflag; /* 156-156 */ 60 char typeflag; /* 156-156 */
61 char linkname[100]; /* 157-256 */ 61 char linkname[100]; /* 157-256 */
62 char magic[6]; /* 257-262 */ 62 /* POSIX: "ustar" NUL "00" */
63 char version[2]; /* 263-264 */ 63 /* GNU tar: "ustar " NUL */
64 char magic[8]; /* 257-264 */
64 char uname[32]; /* 265-296 */ 65 char uname[32]; /* 265-296 */
65 char gname[32]; /* 297-328 */ 66 char gname[32]; /* 297-328 */
66 char devmajor[8]; /* 329-336 */ 67 char devmajor[8]; /* 329-336 */