stagit
static git repository generator
git clone https://9o.is/git/stagit.git
commit e1d7c29074a5a227fcb7b57827df01bfc16c5845 parent b50336cc6486ff6d029cf9646030fb72bde98d76 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Mon, 17 Apr 2017 16:16:33 +0200 writeblobhtml: minor style fix using len instead of the loop 'i' is slightly more clear Diffstat:
| M | stagit.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stagit.c b/stagit.c @@ -395,7 +395,7 @@ writeblobhtml(FILE *fp, const git_blob *blob) prev = i + 1; } /* trailing data */ - if ((i - prev) > 0) { + if ((len - prev) > 0) { n++; fprintf(fp, nfmt, n, n, n); xmlencode(fp, &s[prev], len - prev);