aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/playerdb.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/playerdb.c
parente7477b47392fc685ea28357bbc478fa94119500d (diff)
Added usage of ARRAY_SIZE()
Diffstat (limited to 'FICS/playerdb.c')
-rw-r--r--FICS/playerdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c
index 91eb43d..00c409c 100644
--- a/FICS/playerdb.c
+++ b/FICS/playerdb.c
@@ -2723,7 +2723,7 @@ player_search(int p, char *name)
// Exact match with registered player?
snprintf(pdir, sizeof pdir, "%s/%c", player_dir, name[0]);
- count = search_directory(pdir, name, buffer, 1000);
+ count = search_directory(pdir, name, buffer, ARRAY_SIZE(buffer));
if (count > 0 && !strcmp(name, *buffer))
goto ReadPlayerFromFile; // Found an unconnected