summaryrefslogtreecommitdiff
path: root/lib/libc/gen/setmode.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1999-11-04 04:46:18 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1999-11-04 04:46:18 +0000
commitd67f4d918d26681bb822d5d0db34e5dbfc30a169 (patch)
tree327def6bbf855d93861c38775c75b8e811e96813 /lib/libc/gen/setmode.c
parentda488b70861b0f049307696672a0727f13b027bb (diff)
Notes
Diffstat (limited to 'lib/libc/gen/setmode.c')
-rw-r--r--lib/libc/gen/setmode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/setmode.c b/lib/libc/gen/setmode.c
index 0bbf22df7d05..2c12b818b614 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);