diff --git a/tools/nxstyle.c b/tools/nxstyle.c index 98b392619fd..f37972450d3 100644 --- a/tools/nxstyle.c +++ b/tools/nxstyle.c @@ -1471,7 +1471,7 @@ int main(int argc, char **argv, char **envp) { ERROR("Closing C comment not indented", lineno, n); } - else if (!isspace((int)line[n + 1]) && line[n - 2] != '*') + else if (!isspace((int)line[n - 2]) && line[n - 2] != '*') { ERROR("Missing space before closing C comment", lineno, n); @@ -1974,7 +1974,7 @@ int main(int argc, char **argv, char **envp) case '/': - /* C comment terminator*/ + /* C comment terminator */ if (line[n - 1] == '*') {