From: Tim Kientzle Date: Tue, 20 May 2008 21:44:35 +0000 (-0400) Subject: Fix a typecast. X-Git-Tag: v2.6.0~214 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e28797731cc08bb6ecdc25210996b8af3091b510;p=thirdparty%2Flibarchive.git Fix a typecast. SVN-Revision: 78 --- diff --git a/libarchive/archive_read_support_format_ar.c b/libarchive/archive_read_support_format_ar.c index 846b4ad94..15d7e7cfd 100644 --- a/libarchive/archive_read_support_format_ar.c +++ b/libarchive/archive_read_support_format_ar.c @@ -355,7 +355,7 @@ archive_read_format_ar_read_header(struct archive_read *a, * overflowing a size_t and against the filename size * being larger than the entire entry. */ if (number > (uint64_t)(bsd_name_length + 1) - || (uint64_t)bsd_name_length > ar->entry_bytes_remaining) { + || (off_t)bsd_name_length > ar->entry_bytes_remaining) { archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC, "Bad input file size"); return (ARCHIVE_FATAL);