size_t skip, bytes, skipped = 0;
for (;;) {
- bytes = (a->decompressor->read_ahead)(a, &h, 2048);
+ bytes = (a->decompressor->read_ahead)(a, &h,
+ sizeof(struct cpio_newc_header));
if (bytes < sizeof(struct cpio_newc_header))
return (ARCHIVE_FATAL);
p = h;
return (r);
/* Read fixed-size portion of header. */
- bytes = (a->decompressor->read_ahead)(a, &h, sizeof(struct cpio_newc_header));
+ bytes = (a->decompressor->read_ahead)(a, &h,
+ sizeof(struct cpio_newc_header));
if (bytes < sizeof(struct cpio_newc_header))
return (ARCHIVE_FATAL);
(a->decompressor->consume)(a, sizeof(struct cpio_newc_header));
size_t skip, bytes, skipped = 0;
for (;;) {
- bytes = (a->decompressor->read_ahead)(a, &h, 512);
+ bytes = (a->decompressor->read_ahead)(a, &h,
+ sizeof(struct cpio_odc_header));
if (bytes < sizeof(struct cpio_odc_header))
return (ARCHIVE_FATAL);
p = h;
return (r);
/* Read fixed-size portion of header. */
- bytes = (a->decompressor->read_ahead)(a, &h, sizeof(struct cpio_odc_header));
+ bytes = (a->decompressor->read_ahead)(a, &h,
+ sizeof(struct cpio_odc_header));
if (bytes < sizeof(struct cpio_odc_header))
return (ARCHIVE_FATAL);
(a->decompressor->consume)(a, sizeof(struct cpio_odc_header));
a->archive.archive_format_name = "cpio (little-endian binary)";
/* Read fixed-size portion of header. */
- bytes = (a->decompressor->read_ahead)(a, &h, sizeof(struct cpio_bin_header));
+ bytes = (a->decompressor->read_ahead)(a, &h,
+ sizeof(struct cpio_bin_header));
if (bytes < sizeof(struct cpio_bin_header))
return (ARCHIVE_FATAL);
(a->decompressor->consume)(a, sizeof(struct cpio_bin_header));