From d6aea9f75316ea748725d320d92f3db08a8da410 Mon Sep 17 00:00:00 2001 From: Skunnyk Date: Mon, 8 Jun 2015 13:17:28 +0200 Subject: [PATCH] Fix AUR4 download URL --- src/aur.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aur.c b/src/aur.c index 77a7caf..2037c27 100644 --- a/src/aur.c +++ b/src/aur.c @@ -310,9 +310,9 @@ static int json_end_map (void *ctx) { const char *name = aur_pkg_get_name(pkg_json->pkg); if (name != NULL) { - size_t size = strnlen(name, 200) + 34; + size_t size = strnlen(name, 200) + 31; pkg_json->pkg->urlpath = malloc(sizeof(char) * size); - snprintf(pkg_json->pkg->urlpath, size, "/cgit/%s.git/snapshot/master.tar.gz", name); + snprintf(pkg_json->pkg->urlpath, size, "/cgit/aur.git/snapshot/%s.tar.gz", name); } }