X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Flexer%2Fcommand-name.c;h=eae0b43b39d3d89d059f417b6c754d4f38ced840;hb=f42cd385428298f9ee9795a3296e32363a9b0baa;hp=24443a0995b814c7d30e60c123b8924d14a7e5b8;hpb=a02c8c084678a90529038bea3ce4bd6ca3ce80fe;p=pspp diff --git a/src/language/lexer/command-name.c b/src/language/lexer/command-name.c index 24443a0995..eae0b43b39 100644 --- a/src/language/lexer/command-name.c +++ b/src/language/lexer/command-name.c @@ -132,7 +132,7 @@ command_match (struct substring command, struct substring string, // Try each possible command. command_matcher_init (&cm, string); - for (cmd = commands; cmd < &commands[command_cnt]; cmd++) + for (cmd = commands; cmd < &commands[n_commands]; cmd++) command_matcher_add (&cm, cmd->name, cmd); // Get the result.