summaryrefslogtreecommitdiff
path: root/libarchive/archive_write_set_format_xar.c
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@gmail.com>2010-11-19 01:49:07 -0500
committerTim Kientzle <kientzle@gmail.com>2010-11-19 01:49:07 -0500
commit9fdf89477ed7bd537899b701d082dee12e3c7078 (patch)
tree7d7972a9ec914855fb30babd46c1c942fa63c746 /libarchive/archive_write_set_format_xar.c
parente462112f462daca090b791d7616aebd83ea56b69 (diff)
downloadlibarchive-9fdf89477ed7bd537899b701d082dee12e3c7078.tar.gz
Big string overhaul:
* Remove __ from names (ISO C reserves names prefixed with __) * Remove the gratuitous macro wrappers * Remove a couple of unused functions * Try to simplify some of the implementations a bit more. * Move the "archive entry string" (aes) functions into archive_string as "archive_multistring" so these can be used outside of archive_entry SVN-Revision: 2791
Diffstat (limited to 'libarchive/archive_write_set_format_xar.c')
-rw-r--r--libarchive/archive_write_set_format_xar.c2
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--;