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 /editors/diff.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 'editors/diff.c')
-rw-r--r-- | editors/diff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/diff.c b/editors/diff.c index e977f4d14..745ef0a33 100644 --- a/editors/diff.c +++ b/editors/diff.c | |||
@@ -749,7 +749,7 @@ static int asciifile(FILE *f) | |||
749 | rewind(f); | 749 | rewind(f); |
750 | cnt = fread(g_read_buf, 1, COMMON_BUFSIZE, f); | 750 | cnt = fread(g_read_buf, 1, COMMON_BUFSIZE, f); |
751 | for (i = 0; i < cnt; i++) { | 751 | for (i = 0; i < cnt; i++) { |
752 | if (!isprint(g_read_buf[i]) | 752 | if (!isprint_asciionly(g_read_buf[i]) |
753 | && !isspace(g_read_buf[i]) | 753 | && !isspace(g_read_buf[i]) |
754 | ) { | 754 | ) { |
755 | return 0; | 755 | return 0; |