* kparse.c (strutol): Cast argument to isupper()/tolower() to int.
authorEzra Peisach <epeisach@mit.edu>
Mon, 18 Jun 2001 18:52:04 +0000 (18:52 +0000)
committerEzra Peisach <epeisach@mit.edu>
Mon, 18 Jun 2001 18:52:04 +0000 (18:52 +0000)
* realmofhost.c (krb_realmofhost): Likewise.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13369 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb4/ChangeLog
src/lib/krb4/kparse.c
src/lib/krb4/realmofhost.c

index e5510d4995efe2cf3b5f70252ee83bd90b2438c9..17c0be0d380501070b096e0b1512e5f772e44885 100644 (file)
@@ -1,6 +1,7 @@
 2001-06-18  Ezra Peisach  <epeisach@mit.edu>
 
        * kparse.c (strutol): Cast argument to isupper()/tolower() to int.
+       * realmofhost.c (krb_realmofhost): Likewise.
 
 2001-06-18  Ezra Peisach  <epeisach@mit.edu>
 
index fb3c2435ccfd3146a527eb9586c980e095f9a51f..c60cbbcfd555ad9e6fdb3609ab0b4f151d663d29 100644 (file)
@@ -562,8 +562,8 @@ static char * strutol( start )
 {
     char *q;
     for (q=start; *q; q++)
-        if (isupper(*q))
-           *q=tolower(*q);
+        if (isupper((int) *q))
+           *q=tolower((int) *q);
     return(start);
 }
 \f
index d795dd70974cd958990a6edc6051154eebc9a839..684670c6be55f8cbe77db7c0b6680bb5108ef735 100644 (file)
@@ -105,7 +105,7 @@ krb_realmofhost(host)
                /* Upper-case realm */
                for (cp = ret_realm; *cp; cp++)
                        if (islower((int) (*cp)))
-                               *cp = toupper(*cp);
+                               *cp = toupper((int) *cp);
        } else {
                krb_get_lrealm(ret_realm, 1);
        }