X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/f2a901d2e1db5217d6890b26c6dc1ec119505d02..5564a5d06678b3f9b0725bc4b2383ea1b7eb5515:/ui-repolist.c diff --git a/ui-repolist.c b/ui-repolist.c index 30915df..b57ea60 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -275,6 +275,7 @@ void cgit_print_repolist(void) int i, columns = 3, hits = 0, header = 0; char *last_section = NULL; char *section; + char *repourl; int sorted = 0; if (!any_repos_visible()) { @@ -320,7 +321,7 @@ void cgit_print_repolist(void) (last_section != NULL && section == NULL) || (last_section != NULL && section != NULL && strcmp(section, last_section)))) { - htmlf("", + htmlf("", columns); html_txt(section); html(""); @@ -330,7 +331,9 @@ void cgit_print_repolist(void) !sorted && section ? "sublevel-repo" : "toplevel-repo"); cgit_summary_link(ctx.repo->name, ctx.repo->name, NULL, NULL); html(""); - html_link_open(cgit_repourl(ctx.repo->url), NULL, NULL); + repourl = cgit_repourl(ctx.repo->url); + html_link_open(repourl, NULL, NULL); + free(repourl); html_ntxt(ctx.cfg.max_repodesc_len, ctx.repo->desc); html_link_close(); html(""); @@ -340,13 +343,15 @@ void cgit_print_repolist(void) html_txt(ctx.repo->owner); cgit_close_filter(ctx.repo->owner_filter); } else { + char *currenturl = cgit_currenturl(); html(""); html_txt(ctx.repo->owner); html(""); + free(currenturl); } html(""); }