summaryrefslogtreecommitdiff
path: root/write.c
diff options
context:
space:
mode:
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 */