aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-09-28 15:15:27 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-09-28 15:15:27 +0000
commit656333da566d88ddd64f16b5a5e681144ea559f2 (patch)
tree0e570400d008628a1991b0ba66ee99d49d724fb6
parentc0737faebef230e225581f98f6fbc0230416dd43 (diff)
downloadcpio-656333da566d88ddd64f16b5a5e681144ea559f2.tar.gz
cpio-656333da566d88ddd64f16b5a5e681144ea559f2.tar.bz2
Fix passing improper argument to swab_array.
-rw-r--r--src/copyin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/copyin.c b/src/copyin.c
index ce4ff38..70d507c 100644
--- a/src/copyin.c
+++ b/src/copyin.c
@@ -108,9 +108,9 @@ query_rename(struct cpio_file_stat* file_hdr, FILE *tty_in, FILE *tty_out,
header type. */
static void
-tape_skip_padding (int in_file_des, int offset)
+tape_skip_padding (int in_file_des, off_t offset)
{
- int pad;
+ off_t pad;
if (archive_format == arf_crcascii || archive_format == arf_newascii)
pad = (4 - (offset % 4)) % 4;
@@ -1266,7 +1266,7 @@ read_in_binary (struct cpio_file_stat *file_hdr,
error (0, 0, _("warning: archive header has reverse byte-order"));
warned = 1;
}
- swab_array ((char *) &short_hdr, 13);
+ swab_array ((char *) short_hdr, 13);
}
file_hdr->c_dev_maj = major (short_hdr->c_dev);

Return to:

Send suggestions and report system problems to the System administrator.