aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/catman
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2003-06-10 02:18:00 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2003-06-10 02:18:00 +0000
commit4aeece6a14eeb27e068e7cc19551060c68cde52d (patch)
tree355e297af6b2440cf588634baa46e787b3a04dfc /usr.bin/catman
parentddcab7eeac04e49f3d12c692ab6d0abb7db8068c (diff)
Notes
Diffstat (limited to 'usr.bin/catman')
-rw-r--r--usr.bin/catman/catman.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/catman/catman.c b/usr.bin/catman/catman.c
index 265388d999907..3d4bf8e46eda4 100644
--- a/usr.bin/catman/catman.c
+++ b/usr.bin/catman/catman.c
@@ -201,7 +201,7 @@ directory_type(char *dir)
p += 3;
if (*p == '\0')
return TOP_LEVEL_DIR;
- while (isalnum(*p) || *p == '_') {
+ while (isalnum((unsigned char)*p) || *p == '_') {
if (*++p == '\0')
return MAN_SECTION_DIR;
}
@@ -222,7 +222,7 @@ is_manpage_name(char *name)
char *n = name;
while (*n != '\0') {
- if (!isalnum(*n)) {
+ if (!isalnum((unsigned char)*n)) {
switch (*n) {
case '_':
break;