aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/playerdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/playerdb.c')
-rw-r--r--FICS/playerdb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c
index 909417d..8b3cb0d 100644
--- a/FICS/playerdb.c
+++ b/FICS/playerdb.c
@@ -2911,10 +2911,11 @@ WriteMsgFile(int p, textlist *Head)
close(fd);
return 0;
}
+
for (Cur = Head; Cur != NULL; Cur = Cur->next)
fprintf(fp, "%s", Cur->text);
- fclose(fp);
- return 1;
+
+ return (fclose(fp) == 0 ? 1 : 0);
}
PUBLIC int