aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Mayo2019-02-21 19:57:23 +0000
committerJason A. Donenfeld2019-02-23 00:09:17 +0100
commitbd0293f57015ede637b630fcaf4fc11e7697d777 (patch)
tree8777c66023013c75bcd35b8c5c68846057a08504
parent5bd7e9bc1b6749bbb5220d6c3a990469a7b839ae (diff)
downloadcgit-bd0293f57015ede637b630fcaf4fc11e7697d777.tar.gz
cgit-bd0293f57015ede637b630fcaf4fc11e7697d777.tar.bz2
cgit-bd0293f57015ede637b630fcaf4fc11e7697d777.zip
ui-diff,ui-tag: don't use htmlf with non-formatted strings
Signed-off-by: Chris Mayo <aklhfex@gmail.com>
-rw-r--r--ui-diff.c2
-rw-r--r--ui-tag.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/ui-diff.c b/ui-diff.c
index 70dcc91..c60aefd 100644
--- a/ui-diff.c
+++ b/ui-diff.c
@@ -82,7 +82,7 @@ static void print_fileinfo(struct fileinfo *info)
82 } 82 }
83 83
84 html("<tr>"); 84 html("<tr>");
85 htmlf("<td class='mode'>"); 85 html("<td class='mode'>");
86 if (is_null_oid(info->new_oid)) { 86 if (is_null_oid(info->new_oid)) {
87 cgit_print_filemode(info->old_mode); 87 cgit_print_filemode(info->old_mode);
88 } else { 88 } else {
diff --git a/ui-tag.c b/ui-tag.c
index f530224..846d5b1 100644
--- a/ui-tag.c
+++ b/ui-tag.c
@@ -71,7 +71,7 @@ void cgit_print_tag(char *revname)
71 } 71 }
72 cgit_print_layout_start(); 72 cgit_print_layout_start();
73 html("<table class='commit-info'>\n"); 73 html("<table class='commit-info'>\n");
74 htmlf("<tr><td>tag name</td><td>"); 74 html("<tr><td>tag name</td><td>");
75 html_txt(revname); 75 html_txt(revname);
76 htmlf(" (%s)</td></tr>\n", oid_to_hex(&oid)); 76 htmlf(" (%s)</td></tr>\n", oid_to_hex(&oid));
77 if (info->tagger_date > 0) { 77 if (info->tagger_date > 0) {
@@ -103,7 +103,7 @@ void cgit_print_tag(char *revname)
103 } else { 103 } else {
104 cgit_print_layout_start(); 104 cgit_print_layout_start();
105 html("<table class='commit-info'>\n"); 105 html("<table class='commit-info'>\n");
106 htmlf("<tr><td>tag name</td><td>"); 106 html("<tr><td>tag name</td><td>");
107 html_txt(revname); 107 html_txt(revname);
108 html("</td></tr>\n"); 108 html("</td></tr>\n");
109 html("<tr><td>tagged object</td><td class='sha1'>"); 109 html("<tr><td>tagged object</td><td class='sha1'>");