ntcore: Read ini escaped quotes correctly (#1579)

This commit is contained in:
Peter Johnson
2019-02-01 23:01:00 -08:00
committed by GitHub
parent f156a00117
commit 0e1f9c2ed2
2 changed files with 10 additions and 8 deletions

View File

@@ -109,10 +109,6 @@ static wpi::StringRef UnescapeString(wpi::StringRef source,
continue;
}
switch (*++s) {
case '\\':
case '"':
buf.push_back(s[-1]);
break;
case 't':
buf.push_back('\t');
break;
@@ -133,7 +129,7 @@ static wpi::StringRef UnescapeString(wpi::StringRef source,
break;
}
default:
buf.push_back(s[-1]);
buf.push_back(*s);
break;
}
}