aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
Diffstat (limited to 'FICS')
-rw-r--r--FICS/playerdb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c
index 778d540..a892e3d 100644
--- a/FICS/playerdb.c
+++ b/FICS/playerdb.c
@@ -3087,11 +3087,13 @@ player_add_comment(int p_by, int p_to, char *comment)
PUBLIC int
player_show_comments(int p, int p1)
{
- char fname[MAX_FILENAME_SIZE];
+ char fname[MAX_FILENAME_SIZE] = { '\0' };
snprintf(fname, sizeof fname, "%s/player_data/%c/%s.%s", stats_dir,
parray[p1].login[0], parray[p1].login, "comments");
- psend_file(p, NULL, fname);
+
+ if (psend_file(p, NULL, fname) == -1)
+ warnx("%s: psend_file() error", __func__);
return 0;
}