From 8684cbb5cc2c461e3795fba19ad7386db37cf499 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 18 Nov 2009 11:34:43 +0100 Subject: libbb: robustify isXXXX(). +39 bytes Signed-off-by: Denys Vlasenko --- networking/inetd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'networking') diff --git a/networking/inetd.c b/networking/inetd.c index 391bb9b..a455733 100644 --- a/networking/inetd.c +++ b/networking/inetd.c @@ -1475,9 +1475,8 @@ static void init_ring(void) int i; end_ring = ring; - for (i = 0; i <= 128; ++i) - if (isprint(i)) - *end_ring++ = i; + for (i = ' '; i < 127; i++) + *end_ring++ = i; } /* Character generator. MMU arches only. */ /* ARGSUSED */ -- cgit v1.1