diff options
-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); |