Skip to content

Commit

Permalink
Fix AUR4 download URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Skunnyk committed Jun 8, 2015
1 parent e1a348c commit d6aea9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aur.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit d6aea9f

Please sign in to comment.