diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libarchive/archive_write_disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libarchive/archive_write_disk.c b/lib/libarchive/archive_write_disk.c index 59413d9..a941ab6 100644 --- a/lib/libarchive/archive_write_disk.c +++ b/lib/libarchive/archive_write_disk.c @@ -477,7 +477,7 @@ _archive_write_data_block(struct archive *_a, /* Write the data. */ while (size > 0 && a->offset < a->filesize) { - if (a->offset + size > a->filesize) { + if ((off_t)(a->offset + size) > a->filesize) { size = (size_t)(a->filesize - a->offset); archive_set_error(&a->archive, errno, "Write request too large"); |