summaryrefslogtreecommitdiffabout
path: root/ui-log.c
Unidiff
Diffstat (limited to 'ui-log.c') (more/less context) (ignore whitespace changes)
-rw-r--r--ui-log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-log.c b/ui-log.c
index c80fd73..75bbbe4 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -101,28 +101,28 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *path)
101 commit->parents = NULL; 101 commit->parents = NULL;
102 } 102 }
103 103
104 for (i = 0; i < cnt && (commit = get_revision(&rev)) != NULL; i++) { 104 for (i = 0; i < cnt && (commit = get_revision(&rev)) != NULL; i++) {
105 print_commit(commit); 105 print_commit(commit);
106 free(commit->buffer); 106 free(commit->buffer);
107 commit->buffer = NULL; 107 commit->buffer = NULL;
108 free_commit_list(commit->parents); 108 free_commit_list(commit->parents);
109 commit->parents = NULL; 109 commit->parents = NULL;
110 } 110 }
111 html("</table>\n"); 111 html("</table>\n");
112 112
113 html("<div class='pager'>"); 113 html("<div class='pager'>");
114 if (ofs > 0) { 114 if (ofs > 0) {
115 html("&nbsp;<a href='"); 115 html("&nbsp;<a href='");
116 html(cgit_pageurl(cgit_query_repo, cgit_query_page, 116 html(cgit_pageurl(cgit_query_repo, cgit_query_page,
117 fmt("h=%s&ofs=%d", tip, ofs-cnt))); 117 fmt("h=%s&amp;ofs=%d", tip, ofs-cnt)));
118 html("'>[prev]</a>&nbsp;"); 118 html("'>[prev]</a>&nbsp;");
119 } 119 }
120 120
121 if ((commit = get_revision(&rev)) != NULL) { 121 if ((commit = get_revision(&rev)) != NULL) {
122 html("&nbsp;<a href='"); 122 html("&nbsp;<a href='");
123 html(cgit_pageurl(cgit_query_repo, "log", 123 html(cgit_pageurl(cgit_query_repo, "log",
124 fmt("h=%s&ofs=%d", tip, ofs+cnt))); 124 fmt("h=%s&amp;ofs=%d", tip, ofs+cnt)));
125 html("'>[next]</a>&nbsp;"); 125 html("'>[next]</a>&nbsp;");
126 } 126 }
127 html("</div>"); 127 html("</div>");
128} 128}