summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1999-11-04 04:46:18 +0000
committerache <ache@FreeBSD.org>1999-11-04 04:46:18 +0000
commitfd2f05f5b2984ac3527569a6e325edb0c81e6511 (patch)
tree327def6bbf855d93861c38775c75b8e811e96813 /lib/libc
parent7e7f6fec00526164a1f3d0e412d674cd9178989b (diff)
downloadFreeBSD-src-fd2f05f5b2984ac3527569a6e325edb0c81e6511.zip
FreeBSD-src-fd2f05f5b2984ac3527569a6e325edb0c81e6511.tar.gz
Add unsigned char cast to isdigit
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/disklabel.c2
-rw-r--r--lib/libc/gen/setmode.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/disklabel.c b/lib/libc/gen/disklabel.c
index 82a3b3c..c7ac0b4 100644
--- a/lib/libc/gen/disklabel.c
+++ b/lib/libc/gen/disklabel.c
@@ -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);
}
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);
OpenPOWER on IntegriCloud