aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/playerdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/playerdb.c')
-rw-r--r--FICS/playerdb.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c
index 7424edd..a892e3d 100644
--- a/FICS/playerdb.c
+++ b/FICS/playerdb.c
@@ -1040,7 +1040,7 @@ player_read(int p, char *name)
}
if (line[0] == 'v')
- sscanf(line, "%*c %d", &version);
+ (void)sscanf(line, "%*c %d", &version);
if (version > 0) // Quick method:
ReadV1PlayerFmt(p, &parray[p], fp, fname, version);
else { // Do it the old SLOW way
@@ -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;
}