diff options
author | kientzle <kientzle@FreeBSD.org> | 2008-01-18 06:16:08 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2008-01-18 06:16:08 +0000 |
commit | da7596f7454b052e23f50d74051f6ad6f835a42a (patch) | |
tree | c1cba6cd342dfddc0be7504c796858009c9417ca /lib | |
parent | b19f296ae3e0dfa0f16cf7869b704a04d1cbf02b (diff) | |
download | FreeBSD-src-da7596f7454b052e23f50d74051f6ad6f835a42a.zip FreeBSD-src-da7596f7454b052e23f50d74051f6ad6f835a42a.tar.gz |
I misread the Tinderbox error; this should really unbreak 64-bit builds.
Pointy hats, yep, keep 'em coming. ;-/
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"); |