diff options
Diffstat (limited to 'FICS/playerdb.c')
-rw-r--r-- | FICS/playerdb.c | 2 |
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 |