gmx_eof has different behavior from gmx_eof and feof
should be used here.
Change-Id: I877c15d0edde64fe06ae2eedbda980f117509449
* or because of n being too small.
* Since both cases occur very infrequently, we can check for EOF.
*/
* or because of n being too small.
* Since both cases occur very infrequently, we can check for EOF.
*/
{
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);
}
{
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);
}