summaryrefslogtreecommitdiffstats
path: root/src/tests/asn.1/utility.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2006-06-16 06:58:42 +0000
committerKen Raeburn <raeburn@mit.edu>2006-06-16 06:58:42 +0000
commit0cac95ff79f6cc5d21bc85d76e91615c50228ee9 (patch)
tree73fc5a041837242f1a895b22ce91a532d196970a /src/tests/asn.1/utility.c
parent31cd6a4ffa4031ab8e9255c7c626736faa42a1d0 (diff)
downloadkrb5-0cac95ff79f6cc5d21bc85d76e91615c50228ee9.tar.gz
krb5-0cac95ff79f6cc5d21bc85d76e91615c50228ee9.tar.xz
krb5-0cac95ff79f6cc5d21bc85d76e91615c50228ee9.zip
Change a bunch of calls to ctype macros (those cited by Jeff, and a
few others) to cast the character values to unsigned char. ticket: 3445 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18156 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/tests/asn.1/utility.c')
-rw-r--r--src/tests/asn.1/utility.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/asn.1/utility.c b/src/tests/asn.1/utility.c
index 660161fa1..6ad2e9de8 100644
--- a/src/tests/asn.1/utility.c
+++ b/src/tests/asn.1/utility.c
@@ -77,9 +77,9 @@ krb5_error_code krb5_data_hex_parse(krb5_data *d, const char *s)
for (lo = 0, dp = d->data, cp = s; *cp; cp++) {
if (*cp < 0)
return ASN1_PARSE_ERROR;
- else if (isspace(*cp))
+ else if (isspace((unsigned char) *cp))
continue;
- else if (isxdigit(*cp)) {
+ else if (isxdigit((unsigned char) *cp)) {
buf[0] = *cp;
v = strtol(buf, NULL, 16);
} else