tools/mkconfig: Handle string with escape character correctly

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2021-11-07 22:08:01 +08:00 committed by Abdelatif Guettouche
parent 3847539f3d
commit e81182df14

View File

@ -106,7 +106,7 @@ static char *find_value_end(char *ptr)
{ {
if (*ptr == '"') if (*ptr == '"')
{ {
do ptr++; while (*ptr && *ptr != '"'); do ptr++; while (*ptr && (*ptr != '"' || *(ptr - 1) == '\\'));
if (*ptr) ptr++; if (*ptr) ptr++;
} }
else else