X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=mothurout.cpp;h=90d6f37434d7cb4df231817be6d1759df80b45bb;hb=4c5e7a20a03ddc6feb49ff9d21fcb4c79bc5508d;hp=1920221fd8c64a0c98e21c8ba71c19e7e49e906b;hpb=192b4636345c51d962d4711206535e34cb2fd97c;p=mothur.git diff --git a/mothurout.cpp b/mothurout.cpp index 1920221..90d6f37 100644 --- a/mothurout.cpp +++ b/mothurout.cpp @@ -434,7 +434,7 @@ void MothurOut::gobble(istream& f){ char d; while(isspace(d=f.get())) { ;} - f.putback(d); + if(!f.eof()) { f.putback(d); } } catch(exception& e) { errorOut(e, "MothurOut", "gobble"); @@ -446,7 +446,7 @@ void MothurOut::gobble(istringstream& f){ try { char d; while(isspace(d=f.get())) {;} - f.putback(d); + if(!f.eof()) { f.putback(d); } } catch(exception& e) { errorOut(e, "MothurOut", "gobble");