]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
xar: avoid libxml2 deprecation warnings 2700/head
authorMostyn Bramley-Moore <mostyn@antipode.se>
Tue, 15 Jul 2025 11:18:14 +0000 (13:18 +0200)
committerMostyn Bramley-Moore <mostyn@antipode.se>
Tue, 15 Jul 2025 11:18:14 +0000 (13:18 +0200)
libarchive/archive_write_set_format_xar.c

index bb2ba97e4bc333e5f53ccb773e6b50c594951d68..9921f1032be50155e86182e5d952ca6f2c9a5e6f 100644 (file)
@@ -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);
 }