From b5a07a295e4c83ded3b035332c0b8db24839aef1 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 25 Apr 2026 21:43:25 +0200 Subject: commands_init: usage of msnprintf() --- FICS/command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'FICS/command.c') diff --git a/FICS/command.c b/FICS/command.c index e0efaa5..f7a2e3a 100644 --- a/FICS/command.c +++ b/FICS/command.c @@ -1325,7 +1325,7 @@ commands_init(void) (void) fprintf(stderr, "FICS: %s()\n", __func__); fp = afp = NULL; - snprintf(fname, sizeof fname, "%s/commands", comhelp_dir); + msnprintf(fname, sizeof fname, "%s/commands", comhelp_dir); if ((fd[0] = open(fname, g_open_flags[OPFL_WRITE], g_open_modes)) < 0) { warn("%s: open: %s", __func__, fname); @@ -1337,7 +1337,7 @@ commands_init(void) return; } - snprintf(fname, sizeof fname, "%s/admin_commands", adhelp_dir); + msnprintf(fname, sizeof fname, "%s/admin_commands", adhelp_dir); if ((fd[1] = open(fname, g_open_flags[OPFL_WRITE], g_open_modes)) < 0) { warn("%s: open: %s", __func__, fname); -- cgit v1.2.3