From: Michael Tremer Date: Wed, 23 Oct 2024 10:14:27 +0000 (+0000) Subject: repo: Sanitise format strings when creating xfers X-Git-Tag: 0.9.30~939 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3df769500a5fbdb7dc2807909db27b59c1e5d4e8;p=pakfire.git repo: Sanitise format strings when creating xfers Signed-off-by: Michael Tremer --- 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.