From f8c67e7afbef4b98849f480c2c181c3738e7daf4 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Wed, 13 Apr 2016 01:48:33 +0000 Subject: Fix wild memory reference from previous update git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2704 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- generator/pbmtext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'generator/pbmtext.c') diff --git a/generator/pbmtext.c b/generator/pbmtext.c index 221f215e..8ae28616 100644 --- a/generator/pbmtext.c +++ b/generator/pbmtext.c @@ -579,7 +579,7 @@ insertCharacters(bit ** const bits, for (cursor = 0; lp.textArray[line][cursor] != '\0'; ++cursor) { char const currentChar = lp.textArray[line][cursor]; - unsigned int const glyphIndex = (unsigned int) currentChar; + unsigned int const glyphIndex = (unsigned char) currentChar; struct glyph * const glyphP = fontP->glyph[glyphIndex]; int const toprow = row + fontP->maxheight + fontP->y - glyphP->height - glyphP->y; -- cgit 1.4.1