aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-17 11:58:15 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-17 11:58:15 +0100
commit7b53dccb0681cb9db08ab74f909c2d6d59769b09 (patch)
tree871a6326147050a4bca72271fc5205ea6b15f9af /FICS
parent8f1deb69496271fdf5d82e6f7f3de2bc46a118b1 (diff)
com_mailsource: sprintf() -> snprintf()
Diffstat (limited to 'FICS')
-rw-r--r--FICS/comproc.c5
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);