]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
xar: Remove unneeded cast
authorTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 13 May 2026 15:52:12 +0000 (17:52 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Wed, 13 May 2026 18:42:49 +0000 (20:42 +0200)
The variable is size_t and argument expects a size_t. Do not cast to
int, which could only lead to trouble (in theory).

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
libarchive/archive_read_support_format_xar.c

index 874501fc0782739ad87b045f56c748a97f7a03c6..56cacb17da515a7797042f3fe2ce70a2111b2663 100644 (file)
@@ -3638,7 +3638,7 @@ xmllite_read_toc(struct archive_read *a)
                                goto out;
                        }
 
-                       xml_data(a, as.s, (int)archive_strlen(&as));
+                       xml_data(a, as.s, archive_strlen(&as));
                        archive_string_free(&as);
 
                case XmlNodeType_None: