# HG changeset patch # User Mikael Berthe # Date 1441470492 -7200 # Node ID 09508eeb81dc489262b4b7251cbbecc70e52f3dd # Parent bc10fc4eced73a3abb5e08a6c33f1087376785a2 Fix reading of history log files w/o LF character (Sam Whited) diff -r bc10fc4eced7 -r 09508eeb81dc mcabber/mcabber/histolog.c --- 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...