From: Bernhard Reutner-Fischer Date: Fri, 9 Jan 2009 14:49:11 +0000 (-0000) Subject: - isascii() is obsolescent in SUSv4 and furthermore looks redundant in this spot X-Git-Tag: 1_14_0~372 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e44a4e316d28d7435e4d0ae56f002f8764bbfa0b;p=oweals%2Fbusybox.git - isascii() is obsolescent in SUSv4 and furthermore looks redundant in this spot --- 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);