diff options
Diffstat (limited to 'FICS/playerdb.c')
-rw-r--r-- | FICS/playerdb.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c index 7cc577c..4d2257d 100644 --- a/FICS/playerdb.c +++ b/FICS/playerdb.c @@ -2582,9 +2582,7 @@ LoadMsgRange(int p, int start, int end, textlist **Head) } for (n = 1; n <= end || end <= 0; n++) { - fgets(line, sizeof line, fp); - - if (feof(fp)) + if (fgets(line, sizeof line, fp) == NULL) break; if ((start < 0 && (n < -start || n > -end)) || (start >= 0 && n >= start)) { |