aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--FICS/comproc.c4
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);