Merge release-5-0 into master
[alexxy/gromacs.git] / src / gromacs / utility / cstringutil.c
index 86c983c955f809758ac25a35d2e40a2ac481ff9e..fc280a5eb48615a347b8a34358ccb818ce7f125f 100644 (file)
@@ -102,7 +102,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);
         }