diff options
Diffstat (limited to 'libarchive/archive_write_set_format_xar.c')
-rw-r--r-- | libarchive/archive_write_set_format_xar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/archive_write_set_format_xar.c b/libarchive/archive_write_set_format_xar.c index 50f8cc6c..8b5169e5 100644 --- a/libarchive/archive_write_set_format_xar.c +++ b/libarchive/archive_write_set_format_xar.c @@ -2225,7 +2225,7 @@ file_tree(struct archive_write *a, struct file **filepp) struct archive_string as; archive_string_init(&as); - __archive_string_append(&as, p, fn - p + l); + archive_strncat(&as, p, fn - p + l); if (as.s[as.length-1] == '/') { as.s[as.length-1] = '\0'; as.length--; |