rieck/sally — pull request #6 by chwress (2012-08-03 12:54:44+00:00)
Title: Count the number of lines rather than the number of newline characters

input_lines_open(.) function is supposed to return the number of input samples. In case of the "lines" input mode this refers to the number of lines. The function rather counts the number of newlines. Hence, it might be off-by-one if the last line doesn't end with a newline character.
gzgetline correctly reads these last lines as well. Therefore, this issue bug is only related to the progress indicator and for input files that only contain a single line that doesn't end with a newline character. In the latter case that single line is not recognized/ processed.