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:
@@ -1798,7 +1798,7 @@ mp_result mp_int_read_cstring(mp_int z, mp_size radix, const char *str, char **e
|
|||||||
return MP_RANGE;
|
return MP_RANGE;
|
||||||
|
|
||||||
/* Skip leading whitespace */
|
/* Skip leading whitespace */
|
||||||
while(isspace((int)*str))
|
while(isspace((unsigned char)*str))
|
||||||
++str;
|
++str;
|
||||||
|
|
||||||
/* Handle leading sign tag (+/-, positive default) */
|
/* Handle leading sign tag (+/-, positive default) */
|
||||||
@@ -3126,10 +3126,10 @@ static int s_ch2val(char c, int r)
|
|||||||
{
|
{
|
||||||
int out;
|
int out;
|
||||||
|
|
||||||
if(isdigit((int)c))
|
if(isdigit((unsigned char)c))
|
||||||
out = c - '0';
|
out = c - '0';
|
||||||
else if(r > 10 && isalpha((int)c))
|
else if(r > 10 && isalpha((unsigned char)c))
|
||||||
out = toupper(c) - 'A' + 10;
|
out = toupper((unsigned char)c) - 'A' + 10;
|
||||||
else
|
else
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
@@ -829,7 +829,7 @@ mp_result mp_rat_read_cstring(mp_rat r, mp_size radix, const char *str,
|
|||||||
return res;
|
return res;
|
||||||
|
|
||||||
/* Skip whitespace between numerator and (possible) separator */
|
/* Skip whitespace between numerator and (possible) separator */
|
||||||
while(isspace(*endp))
|
while(isspace((unsigned char)*endp))
|
||||||
++endp;
|
++endp;
|
||||||
|
|
||||||
/* If there is no separator, we will stop reading at this point. */
|
/* If there is no separator, we will stop reading at this point. */
|
||||||
@@ -905,7 +905,7 @@ mp_result mp_rat_read_cdecimal(mp_rat r, mp_size radix, const char *str,
|
|||||||
mp_sign osign;
|
mp_sign osign;
|
||||||
char *endp;
|
char *endp;
|
||||||
|
|
||||||
while(isspace((int) *str))
|
while(isspace((unsigned char) *str))
|
||||||
++str;
|
++str;
|
||||||
|
|
||||||
switch(*str) {
|
switch(*str) {
|
||||||
@@ -944,7 +944,7 @@ mp_result mp_rat_read_cdecimal(mp_rat r, mp_size radix, const char *str,
|
|||||||
*end = endp;
|
*end = endp;
|
||||||
return MP_OK;
|
return MP_OK;
|
||||||
}
|
}
|
||||||
else if(isspace(*endp) || *endp == '-' || *endp == '+') {
|
else if(isspace((unsigned char)*endp) || *endp == '-' || *endp == '+') {
|
||||||
return MP_TRUNC;
|
return MP_TRUNC;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@@ -227,11 +227,11 @@ _gss_load_mech(void)
|
|||||||
continue;
|
continue;
|
||||||
p = buf;
|
p = buf;
|
||||||
name = strsep(&p, "\t\n ");
|
name = strsep(&p, "\t\n ");
|
||||||
if (p) while (isspace(*p)) p++;
|
if (p) while (isspace((unsigned char)*p)) p++;
|
||||||
oid = strsep(&p, "\t\n ");
|
oid = strsep(&p, "\t\n ");
|
||||||
if (p) while (isspace(*p)) p++;
|
if (p) while (isspace((unsigned char)*p)) p++;
|
||||||
lib = strsep(&p, "\t\n ");
|
lib = strsep(&p, "\t\n ");
|
||||||
if (p) while (isspace(*p)) p++;
|
if (p) while (isspace((unsigned char)*p)) p++;
|
||||||
kobj = strsep(&p, "\t\n ");
|
kobj = strsep(&p, "\t\n ");
|
||||||
if (!name || !oid || !lib || !kobj)
|
if (!name || !oid || !lib || !kobj)
|
||||||
continue;
|
continue;
|
||||||
|
@@ -243,7 +243,7 @@ send_supported_mechs (OM_uint32 *minor_status,
|
|||||||
|
|
||||||
/* Send the constructed SAM name for this host */
|
/* Send the constructed SAM name for this host */
|
||||||
for (p = hostname; *p != '\0' && *p != '.'; p++) {
|
for (p = hostname; *p != '\0' && *p != '.'; p++) {
|
||||||
*p = toupper(*p);
|
*p = toupper((unsigned char)*p);
|
||||||
}
|
}
|
||||||
*p++ = '$';
|
*p++ = '$';
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
|
Reference in New Issue
Block a user