From: Ezra Peisach Date: Mon, 18 Jun 2001 19:04:43 +0000 (+0000) Subject: * ktutil_funcs.c (ktutil_add): Cast argument to isxdigit() to int X-Git-Tag: krb5-1.3-alpha1~1393 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=124984c6e0ab340943aa7958c0bf882f5283b0ad;p=krb5.git * ktutil_funcs.c (ktutil_add): Cast argument to isxdigit() to int git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13374 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kadmin/ktutil/ChangeLog b/src/kadmin/ktutil/ChangeLog index 50ba92b6e..a574220dc 100644 --- a/src/kadmin/ktutil/ChangeLog +++ b/src/kadmin/ktutil/ChangeLog @@ -1,3 +1,7 @@ +2001-06-18 Ezra Peisach + + * ktutil_funcs.c (ktutil_add): Cast argument to isxdigit() to int. + Mon Feb 26 14:27:24 2001 Ezra Peisach * ktutil.c, ktutil_funcs.c: Do not shadow system "index" and diff --git a/src/kadmin/ktutil/ktutil_funcs.c b/src/kadmin/ktutil/ktutil_funcs.c index f566e04d1..94d5b5e7d 100644 --- a/src/kadmin/ktutil/ktutil_funcs.c +++ b/src/kadmin/ktutil/ktutil_funcs.c @@ -203,7 +203,7 @@ krb5_error_code ktutil_add(context, list, princ_str, kvno, i = 0; for (cp = buf; *cp; cp += 2) { - if (!isxdigit(cp[0]) || !isxdigit(cp[1])) { + if (!isxdigit((int) cp[0]) || !isxdigit((int) cp[1])) { fprintf(stderr, "addent: Illegal character in key.\n"); retval = 0; goto cleanup;