From 2e75876b07007e447c2eed5e944a27fc7815073e Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Wed, 8 Apr 2026 01:35:08 +0200 Subject: Discarded snprintf() return values --- FICS/comproc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'FICS/comproc.c') diff --git a/FICS/comproc.c b/FICS/comproc.c index 1a395ca..e7fb4fa 100644 --- a/FICS/comproc.c +++ b/FICS/comproc.c @@ -1960,8 +1960,8 @@ com_mailsource(int p, param_list param) pprintf(p, "Found no source file matching \"%s\".\n", (iwant ? iwant : "")); } else if ((count == 1) || !strcmp(iwant ? iwant : "", *buffer)) { - snprintf(subj, sizeof subj, "FICS source file from server " - "%s: %s", + (void) snprintf(subj, sizeof subj, "FICS source file from " + "server %s: %s", fics_hostname, *buffer); snprintf(fname, sizeof fname, "%s/%s", @@ -2038,7 +2038,8 @@ com_mailhelp(int p, param_list param) pprintf(p, "Found no help file matching \"%s\".\n", (iwant ? iwant : "")); } else if (count == 1 || !strcmp(*buffer, iwant ? iwant : "")) { - snprintf(subj, sizeof subj, "FICS help file from server %s: %s", + (void) snprintf(subj, sizeof subj, "FICS help file from " + "server %s: %s", fics_hostname, *buffer); snprintf(fname, sizeof fname, "%s/%s", -- cgit v1.2.3