mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
tools/nxstyle.c: Correct indexing error noted by Xaio Xaing in commit comments.
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
29f480f57f
commit
beae24c8c0
+2
-2
@@ -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 '*' */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user