aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/talkproc.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-07-07 01:51:51 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-07-07 01:51:51 +0200
commit4f46b519492cf690dc8a4ca5f40a8ba03cc13b32 (patch)
tree55b42b002aca34b42c9be650ff5b9a07001f404b /FICS/talkproc.c
parente7477b47392fc685ea28357bbc478fa94119500d (diff)
Added usage of ARRAY_SIZE()
Diffstat (limited to 'FICS/talkproc.c')
-rw-r--r--FICS/talkproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/FICS/talkproc.c b/FICS/talkproc.c
index 275ac3b..85da66d 100644
--- a/FICS/talkproc.c
+++ b/FICS/talkproc.c
@@ -887,7 +887,7 @@ com_mailmess(int p, param_list param)
snprintf(mdir, sizeof mdir, "%s/player_data/%c/", stats_dir,
parray[p].login[0]);
- if (search_directory(mdir, filename, buffer, 1000)) {
+ if (search_directory(mdir, filename, buffer, ARRAY_SIZE(buffer))) {
snprintf(subj, sizeof subj, "Your FICS messages from server %s",
fics_hostname);