diff --git a/lib/krb5/keytab_keyfile.c b/lib/krb5/keytab_keyfile.c index dbfd12b6a..0f1b8cdd5 100644 --- a/lib/krb5/keytab_keyfile.c +++ b/lib/krb5/keytab_keyfile.c @@ -104,7 +104,7 @@ get_cell_and_realm (krb5_context context, } /* uppercase */ for (cp = buf; *cp != '\0'; cp++) - *cp = toupper(*cp); + *cp = toupper((unsigned char)*cp); d->realm = strdup (buf); if (d->realm == NULL) {