Cast argument to ctype(3) functions to (unsigned char).

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18253 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-10-06 07:30:54 +00:00
parent 6b3f7ef578
commit 1e83468c03
4 changed files with 11 additions and 11 deletions

View File

@@ -227,11 +227,11 @@ _gss_load_mech(void)
continue;
p = buf;
name = strsep(&p, "\t\n ");
if (p) while (isspace(*p)) p++;
if (p) while (isspace((unsigned char)*p)) p++;
oid = strsep(&p, "\t\n ");
if (p) while (isspace(*p)) p++;
if (p) while (isspace((unsigned char)*p)) p++;
lib = strsep(&p, "\t\n ");
if (p) while (isspace(*p)) p++;
if (p) while (isspace((unsigned char)*p)) p++;
kobj = strsep(&p, "\t\n ");
if (!name || !oid || !lib || !kobj)
continue;

View File

@@ -243,7 +243,7 @@ send_supported_mechs (OM_uint32 *minor_status,
/* Send the constructed SAM name for this host */
for (p = hostname; *p != '\0' && *p != '.'; p++) {
*p = toupper(*p);
*p = toupper((unsigned char)*p);
}
*p++ = '$';
*p = '\0';