diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-17 02:29:02 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-17 02:29:02 +0100 |
commit | 296a358d5cd9a78449340b96891efc1830210b92 (patch) | |
tree | 4a443b9e7971793882f4c5b574f07c987e6fee8d /FICS | |
parent | fd6ff150e2fccdd7a8a794bd963e23c237e1c603 (diff) |
com_mailhelp: sprintf() -> snprintf()
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/comproc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FICS/comproc.c b/FICS/comproc.c index 717e558..eafc56d 100644 --- a/FICS/comproc.c +++ b/FICS/comproc.c @@ -1555,10 +1555,10 @@ com_mailhelp(int p, param_list param) if (count == 0) { pprintf(p, "Found no help file matching \"%s\".\n", iwant); } else if (count == 1 || !strcmp(*buffer, iwant)) { - sprintf(subj, "FICS help file from server %s: %s", + snprintf(subj, sizeof subj, "FICS help file from server %s: %s", fics_hostname, *buffer); - sprintf(fname, "%s/%s", + snprintf(fname, sizeof fname, "%s/%s", help_dir[lang], *buffer); |