From 5e341d0b3101d038ab5ff09d2c41ae7594ee233e Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Thu, 22 Dec 2011 08:38:51 +0100 Subject: [PATCH] Thinko in `post' table handling. --- src/tapost.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tapost.c b/src/tapost.c index 0e5d847..d3feeaa 100644 --- a/src/tapost.c +++ b/src/tapost.c @@ -111,8 +111,8 @@ TA_sfnt_update_post_table(SFNT* sfnt, p += num_glyphs * 2; p_new += num_glyphs * 2; - *p_new = HIGH(max_name_idx + 1); /* new entry */ - *(p_new + 1) = LOW(max_name_idx + 1); + *p_new = HIGH(max_name_idx + 1 + 257); /* new entry */ + *(p_new + 1) = LOW(max_name_idx + 1 + 257); p_new += 2; memcpy(p_new, p, buf + buf_len - p); /* names */ -- 2.11.4.GIT