diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-17 11:58:15 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-17 11:58:15 +0100 |
commit | 7b53dccb0681cb9db08ab74f909c2d6d59769b09 (patch) | |
tree | 871a6326147050a4bca72271fc5205ea6b15f9af /FICS | |
parent | 8f1deb69496271fdf5d82e6f7f3de2bc46a118b1 (diff) |
com_mailsource: sprintf() -> snprintf()
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/comproc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/FICS/comproc.c b/FICS/comproc.c index feffdd9..e515575 100644 --- a/FICS/comproc.c +++ b/FICS/comproc.c @@ -1494,10 +1494,11 @@ com_mailsource(int p, param_list param) if ((count = search_directory(source_dir, iwant, buffer, 1000)) == 0) { pprintf(p, "Found no source file matching \"%s\".\n", iwant); } else if ((count == 1) || !strcmp(iwant, *buffer)) { - sprintf(subj, "FICS source file from server %s: %s", + snprintf(subj, sizeof subj, "FICS source file from server " + "%s: %s", fics_hostname, *buffer); - sprintf(fname, "%s/%s", + snprintf(fname, sizeof fname, "%s/%s", source_dir, *buffer); |