]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix a typecast.
authorTim Kientzle <kientzle@gmail.com>
Tue, 20 May 2008 21:44:35 +0000 (17:44 -0400)
committerTim Kientzle <kientzle@gmail.com>
Tue, 20 May 2008 21:44:35 +0000 (17:44 -0400)
SVN-Revision: 78

libarchive/archive_read_support_format_ar.c

index 846b4ad94e575a914f26de9c4ed14f4e3c84e71f..15d7e7cfd725afe7f18fd55878e46f927e6bb2ea 100644 (file)
@@ -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);