writeblobhtml: minor style fix

using len instead of the loop 'i' is slightly more clear
This commit is contained in:
Hiltjo Posthuma 2017-04-17 16:16:33 +02:00
parent 394d90b7bb
commit 8e4eb29210

View file

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