forked from nuttx/nuttx-update
tools/nxstyle.c: Correct indexing error noted by Xaio Xaing in commit comments.
This commit is contained in:
parent
29f480f57f
commit
beae24c8c0
1 changed files with 2 additions and 2 deletions
|
@ -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 '*' */
|
||||
|
||||
|
|
Loading…
Reference in a new issue