diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-06-21 10:45:17 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-06-21 10:45:17 +0000 |
commit | fe16637d6e50258433ab63b341bca68894ac265f (patch) | |
tree | 9eacc020eb4de89ee9b9a3a34a7ad29c7628edf2 /Build/source/texk/ttf2pk2/parse.c | |
parent | 4e850024741afa0c993d267a6d2c1ff0af2f6609 (diff) |
ttf2pk2: Avoid undefined behaviour when char is signed
git-svn-id: svn://tug.org/texlive/trunk@34345 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/ttf2pk2/parse.c')
-rw-r--r-- | Build/source/texk/ttf2pk2/parse.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Build/source/texk/ttf2pk2/parse.c b/Build/source/texk/ttf2pk2/parse.c index 5ecfd307d81..b2320c9d408 100644 --- a/Build/source/texk/ttf2pk2/parse.c +++ b/Build/source/texk/ttf2pk2/parse.c @@ -82,7 +82,7 @@ gettoken(char **bufferp, size_t *offsetp, FILE *f, Font *fnt, } } - while (isspace(*curp)) + while (isspace((unsigned char)*curp)) curp++; *offsetp = curp - *bufferp; @@ -265,31 +265,31 @@ get_replacements(Font *fnt) p = buffer; - while (isspace(*p)) + while (isspace((unsigned char)*p)) p++; if (!*p) continue; old_name = p; - while (*p && !isspace(*p)) + while (*p && !isspace((unsigned char)*p)) p++; if (*p) *p++ = '\0'; - while (*p && isspace(*p)) + while (*p && isspace((unsigned char)*p)) p++; if (!*p) boops(oldbuffer, old_name - oldbuffer, "Replacement glyph missing."); new_name = p; - while (*p && !isspace(*p)) + while (*p && !isspace((unsigned char)*p)) p++; if (*p) *p++ = '\0'; - while (*p && isspace(*p)) + while (*p && isspace((unsigned char)*p)) p++; if (*p) boops(oldbuffer, p - oldbuffer, "Invalid replacement syntax."); |