--- src/eventdb.cpp.orig 2004-03-14 04:55:12.000000000 +0100 +++ src/eventdb.cpp 2005-05-04 14:41:06.000000000 +0200 @@ -555,13 +555,14 @@ // locate a newline bool found = false; + int c; do { - int c = f.getch(); + c = f.getch(); if(c == '\n') { found = true; break; } - } while(!f.atEnd()); + } while(c != -1); if(!found) break;