aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2026-04-25 21:43:25 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2026-04-25 21:43:25 +0200
commitb5a07a295e4c83ded3b035332c0b8db24839aef1 (patch)
tree24ab2819f134bf9e1c6f06a6dd4b9eeeadd268ba /FICS
parent81085f17b905f1968017c42af8ab983635873b9f (diff)
commands_init: usage of msnprintf()
Diffstat (limited to 'FICS')
-rw-r--r--FICS/command.c4
1 files changed, 2 insertions, 2 deletions
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);