summaryrefslogtreecommitdiff
path: root/ios/document.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-11-15 17:45:50 +0100
committerTor Andersson <tor.andersson@artifex.com>2011-11-22 16:52:38 +0100
commit97ca1a0cbee19553bdc60bf18552738d6776da9f (patch)
treea76cf5e04fe1bdabb75b0a4c04e64c3a9567ec37 /ios/document.c
parent7b0e83ea2e177f30bd2f9a17894217066deb7ea5 (diff)
downloadmupdf-97ca1a0cbee19553bdc60bf18552738d6776da9f.tar.xz
Add search buttons and search bar to iOS app.
Diffstat (limited to 'ios/document.c')
-rw-r--r--ios/document.c3
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++;