Mercurial > hg
changeset 2182:09508eeb81dc
Fix reading of history log files w/o LF character (Sam Whited)
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 05 Sep 2015 18:28:12 +0200 |
parents | bc10fc4eced7 |
children | e62319868844 |
files | mcabber/mcabber/histolog.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/mcabber/histolog.c Thu Jul 23 22:12:38 2015 +0200 +++ b/mcabber/mcabber/histolog.c Sat Sep 05 18:28:12 2015 +0200 @@ -227,7 +227,7 @@ break; ln++; - while (1) { + while (!feof(fp)) { for (tail = data; *tail; tail++) ; if (tail == data) { // That would happen if the log file has NUL characters...