projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
870ccd7
)
- isascii() is obsolescent in SUSv4 and furthermore looks redundant in this spot
author
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Fri, 9 Jan 2009 14:49:11 +0000
(14:49 -0000)
committer
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Fri, 9 Jan 2009 14:49:11 +0000
(14:49 -0000)
loginutils/getty.c
patch
|
blob
|
history
diff --git
a/loginutils/getty.c
b/loginutils/getty.c
index 8bae0df452f4b3b8905abfd2a7845107affb9697..ba5b0d6c87e49ceb480c8aca54ffbd43d4cd9504 100644
(file)
--- 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 (!is
ascii(ascval) || !is
print(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);