diff --git a/tools/nxstyle.c b/tools/nxstyle.c index c7155afd8a..b3e0dbb59f 100644 --- a/tools/nxstyle.c +++ b/tools/nxstyle.c @@ -245,7 +245,7 @@ static int block_comment_width(char *line) */ if (strncmp(&line[b], "***", 3) == 0 && - strncmp(&line[e - 4], "***/", 4) == 0) + strncmp(&line[e - 3], "***/", 4) == 0) { /* Return the the length of the line up to the final '*' */ @@ -257,7 +257,7 @@ static int block_comment_width(char *line) */ if (strncmp(&line[b], "/*", 2) == 0 && - strncmp(&line[e - 4], "***/", 4) == 0) + strncmp(&line[e - 3], "***/", 4) == 0) { /* Return the the length of the line up to the final '*' */