fixed: the data in last line will lost, if the last line is not ended with '\n'

the data in last line will lost, if the last line is not ended with '\n'

Signed-off-by: asdfsx <asdfsx@gmail.com>