@@ -103,7+103,7 @@ char *fgets2(char *line, int n, FILE *stream)
* or because of n being too small.
* Since both cases occur very infrequently, we can check for EOF.
*/
- if (!gmx_eof(stream))
+ if (!feof(stream))
{
gmx_fatal(FARGS, "An input file contains a line longer than %d characters, while the buffer passed to fgets2 has size %d. The line starts with: '%20.20s'", n, n, line);