X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Fbase.cpp;h=95a3685fc34021322b800e185e7a52c9343d8521;hp=da2b5a98cb1c8db3f211b292137783b0c19d4e7d;hb=bd892a8afd93f849aec21706a009f69a5868b34d;hpb=08b840ac3ce9f167045c380e0ebb8266d01fd65d diff --git a/source/io/base.cpp b/source/io/base.cpp index da2b5a9..95a3685 100644 --- a/source/io/base.cpp +++ b/source/io/base.cpp @@ -31,7 +31,7 @@ bool Base::getline(string &line) if(eof_flag) return false; - while(1) + while(!eof()) { int c = get(); if(c==-1 || c=='\n')