diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-04-07 20:54:49 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-04-07 20:54:49 +0200 |
commit | 73b82547b63bc1db4412b08d2967ca966fd8cb99 (patch) | |
tree | a1278f512af99dfaed36895dc42ad94cf0a10c76 | |
parent | a876beec686d2cc5985debed58d58f963ef49408 (diff) | |
download | mupdf-73b82547b63bc1db4412b08d2967ca966fd8cb99.tar.xz |
Fix typo in binary search when looking for CMap resources.
-rw-r--r-- | pdf/pdf_cmap_table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_cmap_table.c b/pdf/pdf_cmap_table.c index 789ea682..daf81ed4 100644 --- a/pdf/pdf_cmap_table.c +++ b/pdf/pdf_cmap_table.c @@ -169,7 +169,7 @@ pdf_find_builtin_cmap(char *cmap_name) { int l = 0; int r = nelem(cmap_table) - 1; - while (l < r) + while (l <= r) { int m = (l + r) >> 1; int c = strcmp(cmap_name, cmap_table[m].name); |