commit | e13f8d280bafc6a6b6e31e2eee587660b8333c56 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Tue Nov 13 15:12:06 2012 -0800 |
committer | Behdad Esfahbod <behdad@behdad.org> | Tue Nov 13 15:12:06 2012 -0800 |
tree | 64dd79a99a336f39252d4510fbcf75c630c8427a | |
parent | 5669a6cf418f3a8b9281c36e9d662d843be80433 [diff] [blame] |
Fix UTF-8 backward iteration Ouch!
diff --git a/src/hb-utf-private.hh b/src/hb-utf-private.hh index 8cde827..ae36ef8 100644 --- a/src/hb-utf-private.hh +++ b/src/hb-utf-private.hh
@@ -77,8 +77,8 @@ const uint8_t *start, hb_codepoint_t *unicode) { - const uint8_t *end = text; - while (start < text && (*--text & 0xc0) == 0x80 && end - text < 4) + const uint8_t *end = text--; + while (start < text && (*text & 0xc0) == 0x80 && end - text < 4) text--; hb_codepoint_t c = *text, mask;