From: Hiltjo Posthuma Date: Mon, 17 Apr 2017 14:16:33 +0000 (+0200) Subject: writeblobhtml: minor style fix X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=8e4eb29210cfefd01ce797e1818df86b3fe2dce6;p=forks%2Fstagit.git writeblobhtml: minor style fix using len instead of the loop 'i' is slightly more clear --- diff --git a/stagit.c b/stagit.c index ca70214..23901c8 100644 --- 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);