tools/nxstyle.c: Correct indexing error noted by Xaio Xaing in commit comments.

This commit is contained in:
Gregory Nutt
2020-01-12 11:47:11 -06:00
committed by Alan Carvalho de Assis
parent 29f480f57f
commit beae24c8c0
+2 -2
View File
@@ -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 '*' */