diff options
author | George Williams <gww@silcom.com> | 2008-05-02 19:09:09 +0200 |
---|---|---|
committer | Juliusz Chroboczek <jch@pps.jussieu.fr> | 2008-05-02 19:09:09 +0200 |
commit | 95a16fb0001abcea6a12b4eb2e1a1d24ab83d5fa (patch) | |
tree | f77679de93ccedf0a77d9947cf9f8c77f6e7fde3 | |
parent | bbab34919743990bf87935480092f7644f8f02fc (diff) |
Fix off-by-one entrySel field.
-rw-r--r-- | write.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |