diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-10 16:26:31 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-10 16:26:31 +0100 |
commit | 449127c2e622a30d988bc8f0cc104f9445b8fae4 (patch) | |
tree | a2c56dc24f04cf9820fcfa0aea1f39d433f69b92 /FICS/talkproc.c | |
parent | e09b52d3220c23e951aee610660d26462ad7afbe (diff) |
com_mailmess: replaced sprintf() calls with snprintf()
Diffstat (limited to 'FICS/talkproc.c')
-rw-r--r-- | FICS/talkproc.c | 5 |
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", |