aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/talkproc.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-10 16:26:31 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-10 16:26:31 +0100
commit449127c2e622a30d988bc8f0cc104f9445b8fae4 (patch)
treea2c56dc24f04cf9820fcfa0aea1f39d433f69b92 /FICS/talkproc.c
parente09b52d3220c23e951aee610660d26462ad7afbe (diff)
com_mailmess: replaced sprintf() calls with snprintf()
Diffstat (limited to 'FICS/talkproc.c')
-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",