diff options
Diffstat (limited to 'client/commands.c')
-rw-r--r-- | client/commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/commands.c b/client/commands.c index aa00be08..5c60df8c 100644 --- a/client/commands.c +++ b/client/commands.c @@ -41,7 +41,7 @@ cmd_build_tree(void) cmd_root.plastson = &cmd_root.son; - for(i=0; i<sizeof(command_table) / sizeof(struct cmd_info); i++) + for(i=0; i<ARRAY_SIZE(command_table); i++) { struct cmd_info *cmd = &command_table[i]; struct cmd_node *old, *new; |