Add unsigned char cast to isdigit
This commit is contained in:
parent
1008eae957
commit
258e127611
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user