Add unsigned char cast to isdigit

This commit is contained in:
ache 1999-11-04 04:46:18 +00:00
parent 1008eae957
commit 258e127611
2 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ gettype(t, names)
for (nm = names; *nm; nm++)
if (strcasecmp(t, *nm) == 0)
return (nm - names);
if (isdigit(*t))
if (isdigit((unsigned char)*t))
return (atoi(t));
return (0);
}

View File

@ -204,7 +204,7 @@ setmode(p)
* If an absolute number, get it and return; disallow non-octal digits
* or illegal bits.
*/
if (isdigit(*p)) {
if (isdigit((unsigned char)*p)) {
perm = (mode_t)strtol(p, NULL, 8);
if (perm & ~(STANDARD_BITS|S_ISTXT)) {
free(saveset);