From 7de88d1bcd420447023b8e74b0aa4f5e8ba1df6b Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 27 Feb 2022 16:53:22 +0100 Subject: Removed array-size constants for certain objects (steps, commands...) --- src/shell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/shell.c') diff --git a/src/shell.c b/src/shell.c index 2cb3719..6e67e0a 100644 --- a/src/shell.c +++ b/src/shell.c @@ -37,8 +37,8 @@ exec_args(int c, char **v) CommandArgs *args; Alg *scramble; - for (i = 0; i < NCOMMANDS; i++) - if (commands[i] != NULL && !strcmp(v[0], commands[i]->name)) + for (i = 0; commands[i] != NULL; i++) + if (!strcmp(v[0], commands[i]->name)) cmd = commands[i]; if (cmd == NULL) { -- cgit v1.3