diff options
author | Tim Kientzle <kientzle@gmail.com> | 2012-01-09 00:47:16 -0500 |
---|---|---|
committer | Tim Kientzle <kientzle@gmail.com> | 2012-01-09 00:47:16 -0500 |
commit | 53d452a750c132e8addb51abd400ae0758109106 (patch) | |
tree | e7598c4273a8d435e10842195b9147182402eafe /libarchive/archive_write_set_format_pax.c | |
parent | cd9ba88b88522356bdd302c553270337ddc1450e (diff) | |
download | libarchive-53d452a750c132e8addb51abd400ae0758109106.tar.gz |
Issue 222: Ouch! Pax writer doesn't correctly disassemble sparse
data when writing it out to the archive.
There's clearly a test missing somewhere around here...
SVN-Revision: 4101
Diffstat (limited to 'libarchive/archive_write_set_format_pax.c')
-rw-r--r-- | libarchive/archive_write_set_format_pax.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/archive_write_set_format_pax.c b/libarchive/archive_write_set_format_pax.c index 3d6b6aa1..4caace51 100644 --- a/libarchive/archive_write_set_format_pax.c +++ b/libarchive/archive_write_set_format_pax.c @@ -1647,7 +1647,7 @@ archive_write_pax_data(struct archive_write *a, const void *buff, size_t s) return (total); p = ((const unsigned char *)buff) + total; - ws = s; + ws = s - total; if (ws > pax->sparse_list->remaining) ws = pax->sparse_list->remaining; |