diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-03-30 01:23:55 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-03-30 01:23:55 +0100 |
commit | eae7d0b9e25648ed6d9d9e990f176570b11386b5 (patch) | |
tree | 53bdd8dbe4964b67521eee55eda29134505bc17b /FICS | |
parent | c1287df6248a54fa4f00598979ab0c0ef4a409b6 (diff) |
Replaced sprintf() calls
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/eco.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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"); |