summaryrefslogtreecommitdiff
path: root/write.c
diff options
context:
space:
mode:
authorGeorge Williams <gww@silcom.com>2008-05-02 19:09:09 +0200
committerJuliusz Chroboczek <jch@pps.jussieu.fr>2008-05-02 19:09:09 +0200
commit95a16fb0001abcea6a12b4eb2e1a1d24ab83d5fa (patch)
treef77679de93ccedf0a77d9947cf9f8c77f6e7fde3 /write.c
parentbbab34919743990bf87935480092f7644f8f02fc (diff)
Fix off-by-one entrySel field.
Diffstat (limited to 'write.c')
-rw-r--r--write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/write.c b/write.c
index 7da3869..318adef 100644
--- a/write.c
+++ b/write.c
@@ -358,7 +358,7 @@ writeDir(FILE *out, FontPtr font, int numTables, unsigned *tables)
writeULONG(out, 0x10000); /* version */
writeUSHORT(out, numTables); /* numTables */
writeUSHORT(out, 16 * ti); /* searchRange */
- writeUSHORT(out, i - 1); /* entrySelector */
+ writeUSHORT(out, i); /* entrySelector */
writeUSHORT(out, 16 * (numTables - ti)); /* rangeShift */
/* see fixupDir */