]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Correct the location the resource fork footer is added.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Fri, 2 Nov 2012 00:12:09 +0000 (09:12 +0900)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Fri, 2 Nov 2012 00:12:09 +0000 (09:12 +0900)
libarchive/archive_write_disk_posix.c

index 5d84ad3fec2d17e3f1d717b335529301b04b06c3..a522d9c8a59cc28944684166aaa8ab4c6a9523a2 100644 (file)
@@ -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;