Merge gromacs-4-6 into master
[alexxy/gromacs.git] / src / gromacs / gmxpreprocess / resall.c
index d29b487b8236fe6fd65ffd69ecb6ca67e11f8808..b71b356b8bd674bba9b0f49aea0f03ead627a45e 100644 (file)
@@ -82,7 +82,7 @@ gpp_atomtype_t read_atype(const char *ffdir,t_symtab *tab)
                     trim(buf);
                 }
             }
-            while (NULL!=buf && strlen(buf)==0);
+            while (!feof(in) && NULL!=buf && strlen(buf)==0);
             
             if ((buf != NULL) && (sscanf(buf,"%s%lf",name,&m) == 2))
             {