aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
Diffstat (limited to 'FICS')
-rw-r--r--FICS/talkproc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/FICS/talkproc.c b/FICS/talkproc.c
index a04f0bb..68f8cb5 100644
--- a/FICS/talkproc.c
+++ b/FICS/talkproc.c
@@ -744,8 +744,9 @@ com_mailmess(int p, param_list param)
return COM_OK;
}
- sprintf(filename, "%s.messages", parray[p].login);
- sprintf(mdir, "%s/player_data/%c/", stats_dir, parray[p].login[0]);
+ snprintf(filename, sizeof filename, "%s.messages", parray[p].login);
+ snprintf(mdir, sizeof mdir, "%s/player_data/%c/", stats_dir,
+ parray[p].login[0]);
if (search_directory(mdir, filename, buffer, 1000)) {
snprintf(subj, sizeof subj, "Your FICS messages from server %s",