From bbd74fb8e6168111a001f7742bff819a1f37cc7d Mon Sep 17 00:00:00 2001 From: Bob Beck Date: Thu, 18 Sep 2003 22:29:31 +0000 Subject: make this test look for spaces as well, to match other cases ok fgs@ ok deraadt@ --- usr.bin/grep/binary.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/grep/binary.c') diff --git a/usr.bin/grep/binary.c b/usr.bin/grep/binary.c index 82ffe94b499..84805714355 100644 --- a/usr.bin/grep/binary.c +++ b/usr.bin/grep/binary.c @@ -1,4 +1,4 @@ -/* $OpenBSD: binary.c,v 1.8 2003/09/07 07:53:44 tedu Exp $ */ +/* $OpenBSD: binary.c,v 1.9 2003/09/18 22:29:30 beck Exp $ */ /*- * Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav @@ -66,7 +66,7 @@ gzbin_file(gzFile *f) return 0; for (i = 0; i < m; i++) - if (!isprint(buf[i])) + if (!isprint(buf[i]) && !isspace(buf[i])) return 1; gzrewind(f); -- cgit v1.2.3