diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-18 11:34:43 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-18 11:34:43 +0100 |
commit | 8684cbb5cc2c461e3795fba19ad7386db37cf499 (patch) | |
tree | 027d4aa55cfa710769c86c2aca838fbba3e3dbe9 /miscutils/strings.c | |
parent | 5b0a7f1a6e66af3f1ff4159d4eb96c30517782b8 (diff) | |
download | busybox-w32-8684cbb5cc2c461e3795fba19ad7386db37cf499.tar.gz busybox-w32-8684cbb5cc2c461e3795fba19ad7386db37cf499.tar.bz2 busybox-w32-8684cbb5cc2c461e3795fba19ad7386db37cf499.zip |
libbb: robustify isXXXX(). +39 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/strings.c')
-rw-r--r-- | miscutils/strings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/strings.c b/miscutils/strings.c index fea9edbed..b4c5854cf 100644 --- a/miscutils/strings.c +++ b/miscutils/strings.c | |||
@@ -49,7 +49,7 @@ int strings_main(int argc UNUSED_PARAM, char **argv) | |||
49 | count = 0; | 49 | count = 0; |
50 | do { | 50 | do { |
51 | c = fgetc(file); | 51 | c = fgetc(file); |
52 | if (isprint(c) || c == '\t') { | 52 | if (isprint_asciionly(c) || c == '\t') { |
53 | if (count > n) { | 53 | if (count > n) { |
54 | bb_putchar(c); | 54 | bb_putchar(c); |
55 | } else { | 55 | } else { |