Fix reading of history log files w/o LF character (Sam Whited)
authorMikael Berthe <mikael@lilotux.net>
Sat, 05 Sep 2015 18:28:12 +0200
changeset 2182 09508eeb81dc
parent 2181 bc10fc4eced7
child 2183 e62319868844
Fix reading of history log files w/o LF character (Sam Whited)
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...