summaryrefslogtreecommitdiffhomepage
path: root/loginutils
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-01-09 14:49:11 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-01-09 14:49:11 +0000
commite44a4e316d28d7435e4d0ae56f002f8764bbfa0b (patch)
tree6f47777eef57430d53cde02b98a9147204ac86ad /loginutils
parent870ccd7212488014aef62fcb1640d5d1faeb07f9 (diff)
- isascii() is obsolescent in SUSv4 and furthermore looks redundant in this spot
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/getty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loginutils/getty.c b/loginutils/getty.c
index 8bae0df45..ba5b0d6c8 100644
--- a/loginutils/getty.c
+++ b/loginutils/getty.c
@@ -473,7 +473,7 @@ static char *get_logname(char *logname, unsigned size_logname,
case CTL('D'):
exit(EXIT_SUCCESS);
default:
- if (!isascii(ascval) || !isprint(ascval)) {
+ if (!isprint(ascval)) {
/* ignore garbage characters */
} else if ((int)(bp - logname) >= size_logname - 1) {
bb_error_msg_and_die("%s: input overrun", op->tty);