writeblobhtml, make fprintf format string const

This commit is contained in:
Hiltjo Posthuma 2017-04-01 19:33:19 +02:00
parent 821a948d08
commit bba55b6bbc

View file

@ -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);