about summary refs log tree commit diff
path: root/generator
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2016-04-13 01:48:33 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2016-04-13 01:48:33 +0000
commitf8c67e7afbef4b98849f480c2c181c3738e7daf4 (patch)
tree1fe48f2a1e5f6beb9f8b64320b2e8d9480e60c4d /generator
parentb41838bc14621a793aa045606463dd903334f6b3 (diff)
downloadnetpbm-mirror-f8c67e7afbef4b98849f480c2c181c3738e7daf4.tar.gz
netpbm-mirror-f8c67e7afbef4b98849f480c2c181c3738e7daf4.tar.xz
netpbm-mirror-f8c67e7afbef4b98849f480c2c181c3738e7daf4.zip
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
Diffstat (limited to 'generator')
-rw-r--r--generator/pbmtext.c2
1 files changed, 1 insertions, 1 deletions
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;