Fix boundary error removing percent escapes

This commit is contained in:
Richard Frith-Macdonald 2020-04-05 10:26:28 +01:00
parent 4bc622bafd
commit ebaf23e295

View file

@ -1958,7 +1958,7 @@ GSICUCollatorOpen(NSStringCompareOptions mask, NSLocale *locale)
{
char c = s[index];
if ('%' == c && index < lastPercent)
if ('%' == c && index <= lastPercent)
{
uint8_t hi = s[index+1];
uint8_t lo = s[index+2];