diff options
| author | Tim Kientzle <kientzle@FreeBSD.org> | 2008-01-18 06:16:08 +0000 |
|---|---|---|
| committer | Tim Kientzle <kientzle@FreeBSD.org> | 2008-01-18 06:16:08 +0000 |
| commit | 91c3a77c576dfefb0e43b60d89235544ffcb83fa (patch) | |
| tree | c1cba6cd342dfddc0be7504c796858009c9417ca /lib/libarchive/archive_write_disk.c | |
| parent | c19af48f40cd95b242935fe264c7616d6e988dd4 (diff) | |
Notes
Diffstat (limited to 'lib/libarchive/archive_write_disk.c')
| -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 59413d96cf1c..a941ab666e84 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"); |
