summaryrefslogtreecommitdiff
path: root/pdf/pdf_cmap_table.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-04-07 20:54:49 +0200
committerTor Andersson <tor.andersson@artifex.com>2011-04-07 20:54:49 +0200
commit73b82547b63bc1db4412b08d2967ca966fd8cb99 (patch)
treea1278f512af99dfaed36895dc42ad94cf0a10c76 /pdf/pdf_cmap_table.c
parenta876beec686d2cc5985debed58d58f963ef49408 (diff)
downloadmupdf-73b82547b63bc1db4412b08d2967ca966fd8cb99.tar.xz
Fix typo in binary search when looking for CMap resources.
Diffstat (limited to 'pdf/pdf_cmap_table.c')
-rw-r--r--pdf/pdf_cmap_table.c2
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);