aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/eco.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-03-30 01:23:55 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-03-30 01:23:55 +0100
commiteae7d0b9e25648ed6d9d9e990f176570b11386b5 (patch)
tree53bdd8dbe4964b67521eee55eda29134505bc17b /FICS/eco.c
parentc1287df6248a54fa4f00598979ab0c0ef4a409b6 (diff)
Replaced sprintf() calls
Diffstat (limited to 'FICS/eco.c')
-rw-r--r--FICS/eco.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/FICS/eco.c b/FICS/eco.c
index cf072f2..ebaf52a 100644
--- a/FICS/eco.c
+++ b/FICS/eco.c
@@ -118,7 +118,7 @@ ECO_init(void)
char *ptmp = tmp;
int i = 0;
- sprintf(filename, "%s/eco999.idx", book_dir);
+ snprintf(filename, sizeof filename, "%s/eco999.idx", book_dir);
if ((fp = fopen(filename, "r")) == NULL) {
fprintf(stderr, "Could not open ECO file (%s)\n", filename);
@@ -181,7 +181,7 @@ NIC_init(void)
char *ptmp = tmp;
int i = 0;
- sprintf(filename, "%s/nic999.idx", book_dir);
+ snprintf(filename, sizeof filename, "%s/nic999.idx", book_dir);
if ((fp = fopen(filename, "r")) == NULL) {
fprintf(stderr, "Could not open NIC file\n");
@@ -236,7 +236,7 @@ LONG_init(void)
char *ptmp = tmp;
int i = 0;
- sprintf(filename, "%s/long999.idx", book_dir);
+ snprintf(filename, sizeof filename, "%s/long999.idx", book_dir);
if ((fp = fopen(filename, "r")) == NULL) {
fprintf(stderr, "Could not open LONG file\n");