diff options
Diffstat (limited to 'ios/document.c')
-rw-r--r-- | ios/document.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ios/document.c b/ios/document.c index b48e0d33..31e8cc57 100644 --- a/ios/document.c +++ b/ios/document.c @@ -192,7 +192,8 @@ static int match(fz_text_span *span, char *s, int n) { int start = n, c; - while ((c = *s++)) { + while (*s) { + s += chartorune(&c, s); if (c == ' ' && charat(span, n) == ' ') { while (charat(span, n) == ' ') n++; |