X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fio%2Fbase.cpp;h=95a3685fc34021322b800e185e7a52c9343d8521;hb=bd892a8afd93f849aec21706a009f69a5868b34d;hp=da2b5a98cb1c8db3f211b292137783b0c19d4e7d;hpb=169ece8b190040c4b61d68122c4ead1ba266cf79;p=libs%2Fcore.git 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')