stagit

writeblobhtml: minor style fix

using len instead of the loop 'i' is slightly more clear

Hiltjo Posthuma contact@arjunchoudhary.com

commit: 02eb261 parent: 578fc48
1 files changed, 1 insertions(+), 1 deletions(-)
Mstagit.c+1-1
M · stagit.c +1, -1
1@@ -395,7 +395,7 @@ writeblobhtml(FILE *fp, const git_blob *blob)
2 			prev = i + 1;
3 		}
4 		/* trailing data */
5-		if ((i - prev) > 0) {
6+		if ((len - prev) > 0) {
7 			n++;
8 			fprintf(fp, nfmt, n, n, n);
9 			xmlencode(fp, &s[prev], len - prev);