From 3df769500a5fbdb7dc2807909db27b59c1e5d4e8 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 23 Oct 2024 10:14:27 +0000 Subject: [PATCH] repo: Sanitise format strings when creating xfers Signed-off-by: Michael Tremer --- src/libpakfire/repo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libpakfire/repo.c b/src/libpakfire/repo.c index 22aa4bab3..c9b92a4e2 100644 --- a/src/libpakfire/repo.c +++ b/src/libpakfire/repo.c @@ -228,6 +228,9 @@ static int __pakfire_repo_path(struct pakfire_repo* repo, return __pakfire_cache_path(repo->pakfire, path, length, "%s/%s", name, buffer); } +static int pakfire_repo_xfer_create(struct pakfire_xfer** xfer, struct pakfire_repo* repo, + const char* url, ...) __attribute__((format(printf, 3, 4))); + /* This is a convenience function to create a xfer with the settings of this repository. -- 2.39.5