diff options
context:
space:
mode:
Diffstat (limited to 'source/ui-refs.c')
-rw-r--r--source/ui-refs.c8
1 file changed, 4 insertions, 4 deletions
diff --git a/source/ui-refs.c b/source/ui-refs.c
index c64b344..932ba6d 100644
--- a/source/ui-refs.c
+++ b/source/ui-refs.c
@@ -153,8 +153,8 @@ static void print_ref_pager(int ofs, int pagesize, int count, const char *path)
html("<tr class='nohover'><td colspan='5' class='refs-pager'>");
if (ofs > 0) {
- url = cgit_pageurl(ctx.qry.repo, fmt("refs/%s", path),
- fmt("ofs=%d", ofs > pagesize ? ofs - pagesize : 0));
+ url = cgit_pageurl(ctx.qry.repo, cgit_fmt("refs/%s", path),
+ cgit_fmt("ofs=%d", ofs > pagesize ? ofs - pagesize : 0));
html("<a href='");
html_attr(url);
html("'>[prev]</a> ");
@@ -163,8 +163,8 @@ static void print_ref_pager(int ofs, int pagesize, int count, const char *path)
htmlf("%d - %d of %d", ofs + 1,
ofs + pagesize < count ? ofs + pagesize : count, count);
if (ofs + pagesize < count) {
- url = cgit_pageurl(ctx.qry.repo, fmt("refs/%s", path),
- fmt("ofs=%d", ofs + pagesize));
+ url = cgit_pageurl(ctx.qry.repo, cgit_fmt("refs/%s", path),
+ cgit_fmt("ofs=%d", ofs + pagesize));
html(" <a href='");
html_attr(url);
html("'>[next]</a>");