From: Hiltjo Posthuma Date: Sat, 1 Apr 2017 17:33:19 +0000 (+0200) Subject: writeblobhtml, make fprintf format string const X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=bba55b6bbcf35f9da67593a04d0b3daecbcd07b7;p=forks%2Fstagit.git writeblobhtml, make fprintf format string const --- diff --git a/stagit.c b/stagit.c index 06b6698..089f15b 100644 --- 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 = "%d\n"; + const char *nfmt = "%d\n"; const char *s = git_blob_rawcontent(blob); git_off_t len = git_blob_rawsize(blob);