From beae24c8c0bcfd3a191040a7a5ff6bd3a96472ea Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 12 Jan 2020 11:47:11 -0600 Subject: [PATCH] tools/nxstyle.c: Correct indexing error noted by Xaio Xaing in commit comments. --- tools/nxstyle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 '*' */