summaryrefslogtreecommitdiffhomepage
path: root/archival/libunarchive/get_header_cpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'archival/libunarchive/get_header_cpio.c')
-rw-r--r--archival/libunarchive/get_header_cpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/libunarchive/get_header_cpio.c b/archival/libunarchive/get_header_cpio.c
index 11925c4e3..bdd80dfea 100644
--- a/archival/libunarchive/get_header_cpio.c
+++ b/archival/libunarchive/get_header_cpio.c
@@ -66,7 +66,7 @@ extern char get_header_cpio(archive_handle_t *archive_handle)
/* There can be padding before archive header */
data_align(archive_handle, 4);
- if (archive_xread_all_eof(archive_handle, cpio_header, 110) == 0) {
+ if (archive_xread_all_eof(archive_handle, (unsigned char*)cpio_header, 110) == 0) {
return(EXIT_FAILURE);
}
archive_handle->offset += 110;