From 296a358d5cd9a78449340b96891efc1830210b92 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 17 Dec 2023 02:29:02 +0100 Subject: com_mailhelp: sprintf() -> snprintf() --- FICS/comproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'FICS') 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); -- cgit v1.2.3