libbb: robustify isXXXX(). +39 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
1 parent
5b0a7f1a6e
commit
8684cbb5cc
9 files changed
+28
-25
No files matched your search
+1
-1
@@ -49,7 +49,7 @@ int strings_main(int argc UNUSED_PARAM, char **argv)
|
||||
count = 0;
|
||||
do {
|
||||
c = fgetc(file);
|
||||
if (isprint(c) || c == '\t') {
|
||||
if (isprint_asciionly(c) || c == '\t') {
|
||||
if (count > n) {
|
||||
bb_putchar(c);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user