This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit e81182df14e61b5c501d5af0901f3ca0e1867d6a
Author: Xiang Xiao <[email protected]>
AuthorDate: Sun Nov 7 22:08:01 2021 +0800

    tools/mkconfig: Handle string with escape character correctly
    
    Signed-off-by: Xiang Xiao <[email protected]>
---
 tools/cfgdefine.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/cfgdefine.c b/tools/cfgdefine.c
index 6a335a0..0f225be 100644
--- a/tools/cfgdefine.c
+++ b/tools/cfgdefine.c
@@ -106,7 +106,7 @@ static char *find_value_end(char *ptr)
     {
       if (*ptr == '"')
         {
-          do ptr++; while (*ptr && *ptr != '"');
+          do ptr++; while (*ptr && (*ptr != '"' || *(ptr - 1) == '\\'));
           if (*ptr) ptr++;
         }
       else

Reply via email to