From: Michihiro NAKAJIMA Date: Fri, 2 Nov 2012 00:12:09 +0000 (+0900) Subject: Correct the location the resource fork footer is added. X-Git-Tag: v3.1.0~39^2~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fd95bd62ffa94fb1437f74bcdd9dead246a77cf;p=thirdparty%2Flibarchive.git Correct the location the resource fork footer is added. --- diff --git a/libarchive/archive_write_disk_posix.c b/libarchive/archive_write_disk_posix.c index 5d84ad3fe..a522d9c8a 100644 --- a/libarchive/archive_write_disk_posix.c +++ b/libarchive/archive_write_disk_posix.c @@ -1158,7 +1158,7 @@ fprintf(stderr, "block %u bytes --> %u bytes in resource fork\n", (unsigned)size /* Append the resource footer. */ rsrc_size = hfs_set_resource_fork_footer( - buffer_compressed + bytes_compressed, + a->compressed_buffer + bytes_used, a->compressed_buffer_remaining); ret = hfs_write_compressed_data(a, bytes_used + rsrc_size); a->compressed_buffer_remaining = a->compressed_buffer_size;