mirror of
https://github.com/sheumann/hush.git
synced 2024-08-21 11:28:57 +00:00
- isascii() is obsolescent in SUSv4 and furthermore looks redundant in this spot
This commit is contained in:
parent
870ccd7212
commit
e44a4e316d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user