I misread the Tinderbox error; this should really unbreak 64-bit builds.

Pointy hats, yep, keep 'em coming.  ;-/
This commit is contained in:
Tim Kientzle 2008-01-18 06:16:08 +00:00
parent c19af48f40
commit 91c3a77c57

View file

@ -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");