From a48ae5111e6c4232f0c0fefcdb463c8efd2d5892 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Thu, 5 Mar 2009 01:59:49 +0000 Subject: [PATCH] Correct r189383, which mis-merged a change from libarchive.googlecode.com. --- lib/libarchive/archive_write_disk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libarchive/archive_write_disk.c b/lib/libarchive/archive_write_disk.c index b71c1da66906..a1eaf280ed36 100644 --- a/lib/libarchive/archive_write_disk.c +++ b/lib/libarchive/archive_write_disk.c @@ -573,8 +573,8 @@ write_data_block(struct archive_write_disk *a, const char *buff, size_t size) bytes_to_write = block_end - a->offset; } /* Seek if necessary to the specified offset. */ - if (offset != a->fd_offset) { - if (lseek(a->fd, offset, SEEK_SET) < 0) { + if (a->offset != a->fd_offset) { + if (lseek(a->fd, a->offset, SEEK_SET) < 0) { archive_set_error(&a->archive, errno, "Seek failed"); return (ARCHIVE_FATAL);