mirror of
https://github.com/sheumann/hush.git
synced 2024-09-12 00:55:11 +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'):
|
case CTL('D'):
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
default:
|
default:
|
||||||
if (!isascii(ascval) || !isprint(ascval)) {
|
if (!isprint(ascval)) {
|
||||||
/* ignore garbage characters */
|
/* ignore garbage characters */
|
||||||
} else if ((int)(bp - logname) >= size_logname - 1) {
|
} else if ((int)(bp - logname) >= size_logname - 1) {
|
||||||
bb_error_msg_and_die("%s: input overrun", op->tty);
|
bb_error_msg_and_die("%s: input overrun", op->tty);
|
||||||
|
Loading…
Reference in New Issue
Block a user