--- a/mcabber/mcabber/histolog.c Sun Nov 15 17:03:41 2015 +0100 +++ b/mcabber/mcabber/histolog.c Sun Nov 15 17:05:07 2015 +0100 @@ -231,6 +231,8 @@ break; ln++; + tail = data; + while (!feof(fp)) { for (tail = data; *tail; tail++) ; if (tail == data) {