From 4dfaf2d3599e5c168b067e456a8fc0e54ed15dba Mon Sep 17 00:00:00 2001 From: Mostyn Bramley-Moore Date: Tue, 15 Jul 2025 13:18:14 +0200 Subject: [PATCH] xar: avoid libxml2 deprecation warnings --- libarchive/archive_write_set_format_xar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libarchive/archive_write_set_format_xar.c b/libarchive/archive_write_set_format_xar.c index bb2ba97e4..9921f1032 100644 --- a/libarchive/archive_write_set_format_xar.c +++ b/libarchive/archive_write_set_format_xar.c @@ -3418,8 +3418,8 @@ static int xml_writer_get_final_content_and_length(struct xml_writer *ctx, const char **out, size_t *size) { - *out = (const char*)ctx->bp->content; - *size = (size_t)ctx->bp->use; + *out = (const char*)xmlBufferContent(ctx->bp); + *size = (size_t)xmlBufferLength(ctx->bp); return (0); } -- 2.47.2