stagit
static git repository generator
git clone https://9o.is/git/stagit.git
commit c1d2cde141112c04a906581bb482d9f8bb4a4029 parent a1d6c7f93b9fff891445294abbdda9bbe7569a11 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 1 Apr 2017 19:33:19 +0200 writeblobhtml, make fprintf format string const Diffstat:
| M | stagit.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stagit.c b/stagit.c @@ -380,7 +380,7 @@ writeblobhtml(FILE *fp, const git_blob *blob) { off_t i; size_t n = 0; - char *nfmt = "<a href=\"#l%d\" id=\"l%d\">%d</a>\n"; + const char *nfmt = "<a href=\"#l%d\" id=\"l%d\">%d</a>\n"; const char *s = git_blob_rawcontent(blob); git_off_t len = git_blob_rawsize(blob);