* conv_princ.c (krb5_425_conv_principal): Cast argument to tolower
authorEzra Peisach <epeisach@mit.edu>
Fri, 6 Jul 2001 17:54:35 +0000 (17:54 +0000)
committerEzra Peisach <epeisach@mit.edu>
Fri, 6 Jul 2001 17:54:35 +0000 (17:54 +0000)
to int.

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

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/conv_princ.c

index 0ff195f0066659cc14edb4e5bb5dc99e48eecd05..17ad9ca04b9d8daba811126f089ca71b4863c5af 100644 (file)
@@ -1,5 +1,8 @@
 2001-07-06  Ezra Peisach  <epeisach@mit.edu>
 
+       * conv_princ.c (krb5_425_conv_principal): Cast argument to tolower
+       to int.
+
        * get_in_tkt.c: Include os-proto.h for _krb5_conf_boolean prototype.
 
        * Makefile.in (LOCALINCLUDES): Add -I$(srcdir)/../os so os-proto.h
index fb1e3465f5093789a5cc5cc96c733110f79c9e59..71c5d27b0b2f79cd3c26d74d652897aae9c026ac 100644 (file)
@@ -319,7 +319,7 @@ krb5_425_conv_principal(context, name, instance, realm, princ)
                  if (domain) {
                      for (cp = domain; *cp; cp++)
                          if (isupper((int) (*cp)))
-                             *cp = tolower(*cp);
+                             *cp = tolower((int) *cp);
                      strncat(buf, ".", sizeof(buf) - 1 - strlen(buf));
                      strncat(buf, domain, sizeof(buf) - 1 - strlen(buf));
                      krb5_xfree(domain);