From 4aeece6a14eeb27e068e7cc19551060c68cde52d Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Tue, 10 Jun 2003 02:18:00 +0000 Subject: [PATCH] Add (unsigned char) cast to ctype macros --- usr.bin/catman/catman.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/catman/catman.c b/usr.bin/catman/catman.c index 265388d9999..3d4bf8e46ed 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;