From def948f052a758850cadc022943517742b299441 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 31 Aug 2002 07:38:35 +0000 Subject: Fix bugs in CompositeGlyphs decoding --- print_render.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'print_render.c') diff --git a/print_render.c b/print_render.c index 398020f..fa56d17 100644 --- a/print_render.c +++ b/print_render.c @@ -435,14 +435,15 @@ PrintGlyphList(unsigned char *buf, int length, char *name, int size) case 4: break; } - buf += n*size + 8; - length -= n*size+8; + n = ((n * size + 8) + 3) & ~3; + buf += n; + length -= n; } else { - PrintField(buf, 4, 4, GLYPHSET, "glyphset"); - buf += 8; - length -= 8; + PrintField(buf, 8, 4, GLYPHSET, "glyphset"); + buf += 12; + length -= 12; } } } -- cgit v1.2.1