]> git.donarmstrong.com Git - mothur.git/blobdiff - sequence.cpp
added end of file character to some type type reads. fixes while testing.
[mothur.git] / sequence.cpp
index 4c631a23451d4d9723aec3a29bed423737b243ba..d1cf7299a46c522255eb725dccb058673f6b1c78 100644 (file)
@@ -220,7 +220,7 @@ Sequence::Sequence(ifstream& fastaFile, string& extraInfo, bool getInfo){
                        //read info after sequence name
                        while (!fastaFile.eof())        {       
                 char c = fastaFile.get(); 
-                if (c == 10 || c == 13){  break;       }       
+                if (c == 10 || c == 13 || c == -1){  break;    }
                 extraInfo += c;
             }