diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-06-19 11:14:35 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-06-19 11:14:35 +0000 |
commit | e5b8a1a0369901d3d73384cf553619d9351679aa (patch) | |
tree | a0b0d02bb0421b6f6f1dce118d40dfe6e91147b6 /Build/source/utils/t1utils/t1utils-1.38/t1disasm.c | |
parent | a7803f3483864a647563ebda46f5fa39a92bb205 (diff) |
texk/*/, utils/*/: Avoid undefined behaviour when char is signed
git-svn-id: svn://tug.org/texlive/trunk@34310 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/t1utils/t1utils-1.38/t1disasm.c')
-rw-r--r-- | Build/source/utils/t1utils/t1utils-1.38/t1disasm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/utils/t1utils/t1utils-1.38/t1disasm.c b/Build/source/utils/t1utils/t1utils-1.38/t1disasm.c index dcec63f5f80..40161a7fae5 100644 --- a/Build/source/utils/t1utils/t1utils-1.38/t1disasm.c +++ b/Build/source/utils/t1utils/t1utils-1.38/t1disasm.c @@ -100,7 +100,7 @@ set_lenIV(char *line) char *p = strstr(line, "/lenIV "); /* Allow lenIV to be negative. Thanks to Tom Kacvinsky <tjk@ams.org> */ - if (p && (isdigit(p[7]) || p[7] == '+' || p[7] == '-')) { + if (p && (isdigit((unsigned char)p[7]) || p[7] == '+' || p[7] == '-')) { lenIV = atoi(p + 7); } } @@ -120,7 +120,7 @@ set_cs_start(char *line) if (q) { r = cs_start; ++q; - while (!isspace(*q) && *q != '{') + while (!isspace((unsigned char)*q) && *q != '{') *r++ = *q++; *r = '\0'; } |