From 58ece9167987dbc3b88656c470244543cb3d5c32 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 12 Oct 2006 04:57:59 +0000 Subject: store max possible glyphs bound --- ucf.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ucf.c') diff --git a/ucf.c b/ucf.c index 94caa40..8c4a487 100644 --- a/ucf.c +++ b/ucf.c @@ -29,6 +29,7 @@ int ucf_init(struct ucf *f, const unsigned char *map, size_t len) f->ranges = map + U32(map+20) + 4; f->gmap = map + U32(map+24); f->glyphs = map + U32(map+28); + f->nglyphs = (len - (f->glyphs - map)) / f->S; f->ctab = f->ranges + 8*(f->nranges = U32(f->ranges - 4)); return 0; } -- cgit v1.2.3