aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
Diffstat (limited to 'FICS')
-rw-r--r--FICS/playerdb.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c
index 2ac7389..7cc577c 100644
--- a/FICS/playerdb.c
+++ b/FICS/playerdb.c
@@ -2546,12 +2546,7 @@ LoadMsgs(int p, int which, textlist **Head)
if ((fp = fopen(fName, "r")) == NULL)
return -1;
- while (!feof(fp)) {
- fgets(line, sizeof line, fp);
-
- if (feof(fp))
- break;
-
+ while (fgets(line, sizeof line, fp) != NULL) {
if (SaveThisMsg(which, line)) {
SaveTextListEntry(Cur, line, ++n);
Cur = &(*Cur)->next;