mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
tools/mkconfig: Handle string with escape character correctly
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Abdelatif Guettouche
parent
3847539f3d
commit
e81182df14
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user