summaryrefslogtreecommitdiffstats
path: root/gnu/libexec
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-08-19 22:08:38 +0000
committerache <ache@FreeBSD.org>1995-08-19 22:08:38 +0000
commitb05c688b2282a9b1aafac1bf6bc4567e1f073b5d (patch)
treecedfc813def7256d9d5dab31f4750b6d05fc9694 /gnu/libexec
parentb06a057b826e638a06edc1f92d5eed32662e0077 (diff)
downloadFreeBSD-src-b05c688b2282a9b1aafac1bf6bc4567e1f073b5d.zip
FreeBSD-src-b05c688b2282a9b1aafac1bf6bc4567e1f073b5d.tar.gz
Fix LEGAL_GRADE determination, isalnum can return true when national
environment is active
Diffstat (limited to 'gnu/libexec')
-rw-r--r--gnu/libexec/uucp/common_sources/uuconf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/libexec/uucp/common_sources/uuconf.h b/gnu/libexec/uucp/common_sources/uuconf.h
index 48cf9cd..a19e01c 100644
--- a/gnu/libexec/uucp/common_sources/uuconf.h
+++ b/gnu/libexec/uucp/common_sources/uuconf.h
@@ -563,7 +563,7 @@ struct uuconf_dialer
#define UUCONF_GRADE_LOW ('z')
/* Whether a character is a legal grade (requires <ctype.h>). */
-#define UUCONF_GRADE_LEGAL(b) (isalnum ((unsigned) (b)))
+#define UUCONF_GRADE_LEGAL(b) (isascii (BUCHAR (b)) && isalnum (BUCHAR (b)))
/* Return < 0 if the first grade should be done before the second
grade, == 0 if they are the same, or > 0 if the first grade should
OpenPOWER on IntegriCloud