From fe16637d6e50258433ab63b341bca68894ac265f Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Sat, 21 Jun 2014 10:45:17 +0000 Subject: ttf2pk2: Avoid undefined behaviour when char is signed git-svn-id: svn://tug.org/texlive/trunk@34345 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/ttf2pk2/vplaux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Build/source/texk/ttf2pk2/vplaux.c') diff --git a/Build/source/texk/ttf2pk2/vplaux.c b/Build/source/texk/ttf2pk2/vplaux.c index 18a21081d2d..5a900015bce 100644 --- a/Build/source/texk/ttf2pk2/vplaux.c +++ b/Build/source/texk/ttf2pk2/vplaux.c @@ -152,11 +152,11 @@ upmap(Font *fnt) for (Ti = fnt->charlist; Ti; Ti = Ti->next) { p = Ti->adobename; - if (isupper(*p)) + if (isupper((unsigned char)*p)) { q = lwr; for (; *p; p++) - *q++ = tolower(*p); + *q++ = tolower((unsigned char)*p); *q = '\0'; if (NULL != (ti = findmappedadobe(lwr, fnt->inencptrs))) -- cgit v1.2.3