aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/playerdb.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-12-02 15:23:33 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-12-02 15:23:33 +0100
commit56c2e0e3554482866b3cd08fefb2fc9ad70ca522 (patch)
treeaf6b20c69f914811e33787ac48fd3c5becd78842 /FICS/playerdb.c
parent92644d6b212f3835051c4ebe8fa86ccd1b7756f4 (diff)
Changed LoadMsgRange()
Diffstat (limited to 'FICS/playerdb.c')
-rw-r--r--FICS/playerdb.c4
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)) {