Skip to content

Commit

Permalink
better
Browse files Browse the repository at this point in the history
  • Loading branch information
FilippoBiga committed Aug 30, 2013
1 parent f614834 commit d2b24f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tweak.mm
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ static CodePath patched_ZN7WebCore4Font22characterRangeCodePathEPKtj(const UChar
if ((c >= 0x300 && c <= 0x36F) || // Combining diacritics
(c >= 0x0600 && c <= 0x109F)) // Arabic (and other) characters
{
for (unsigned j = 0; (j + (sizeof(sequence) / sizeof(UChar))) < len; j++)
for (unsigned j = 0; (len - j) >= (sizeof(sequence)/sizeof(UChar)); j++)
{
if (memcmp(characters + j, sequence, sizeof(sequence)) == 0)
if (memcmp(&characters[j], sequence, sizeof(sequence)) == 0)
{
return Auto;
}
Expand Down

0 comments on commit d2b24f9

Please sign in to comment.