tweaks: use a cheaper way to detect an end-of-line

There is no need to compute the line length: just avoid overstepping
the terminating NUL byte when being forced to advance the index.
2 files changed