From 95a16fb0001abcea6a12b4eb2e1a1d24ab83d5fa Mon Sep 17 00:00:00 2001 From: George Williams Date: Fri, 2 May 2008 19:09:09 +0200 Subject: Fix off-by-one entrySel field. --- write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'write.c') 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 */ -- cgit v1.2.3