mcabber/mcabber/histolog.c
changeset 2232 c06488852cdc
parent 2224 736f9323d701
child 2252 2c7cca6dec6a
equal deleted inserted replaced
2231:387cea2a1a81 2232:c06488852cdc
   228     guint noeol;
   228     guint noeol;
   229 
   229 
   230     if (fgets(data, data_size-1, fp) == NULL)
   230     if (fgets(data, data_size-1, fp) == NULL)
   231       break;
   231       break;
   232     ln++;
   232     ln++;
       
   233 
       
   234     tail = data;
   233 
   235 
   234     while (!feof(fp)) {
   236     while (!feof(fp)) {
   235       for (tail = data; *tail; tail++) ;
   237       for (tail = data; *tail; tail++) ;
   236       if (tail == data) {
   238       if (tail == data) {
   237         // That would happen if the log file has NUL characters...
   239         // That would happen if the log file has NUL characters...