diff options
author | Ken Raeburn <raeburn@mit.edu> | 2006-06-16 06:58:42 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2006-06-16 06:58:42 +0000 |
commit | 0cac95ff79f6cc5d21bc85d76e91615c50228ee9 (patch) | |
tree | 73fc5a041837242f1a895b22ce91a532d196970a /src/tests/asn.1/utility.c | |
parent | 31cd6a4ffa4031ab8e9255c7c626736faa42a1d0 (diff) | |
download | krb5-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.c | 4 |
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 |