diff options
Diffstat (limited to 'lib/libc/gen/setmode.c')
-rw-r--r-- | lib/libc/gen/setmode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/setmode.c b/lib/libc/gen/setmode.c index 0bbf22d..2c12b81 100644 --- a/lib/libc/gen/setmode.c +++ b/lib/libc/gen/setmode.c @@ -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); |