aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-01-03 03:51:22 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-01-03 03:51:22 +0100
commit47e8547c32b2f01580b5055097ba80220f7f348f (patch)
treea899356359933d4f8c77f7399ad16379b42397e7 /FICS
parentbe5eba8d4f0e93cf225306cdaec25186a6aa4f3e (diff)
GetPlayerInfo: added usage of ARRAY_SIZE()
Diffstat (limited to 'FICS')
-rw-r--r--FICS/makerank.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/FICS/makerank.c b/FICS/makerank.c
index 3523782..22dad8a 100644
--- a/FICS/makerank.c
+++ b/FICS/makerank.c
@@ -12,6 +12,7 @@
#include <bsd/string.h>
#endif
+#include "common.h"
#include "makerank.h"
static ENTRY **list;
@@ -31,7 +32,7 @@ GetPlayerInfo(char *fileName, ENTRY *e)
e->computer = 0;
- for (i = 0; i < 4; i++) {
+ for (i = 0; i < ARRAY_SIZE(e->r); i++) {
e->r[i].num = 0;
e->r[i].rating = 0;
}