diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1995-12-28 16:31:23 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1995-12-28 16:31:23 +0000 |
| commit | 4c19ddc5f1963d5cd5889195eff74cca59639135 (patch) | |
| tree | a3ef209a0f715519f8b0d6728cff50293ba4d522 /usr.bin/strings | |
| parent | 0145d80c3c4470d5d3dc75ef9bab2104e10e1499 (diff) | |
Notes
Diffstat (limited to 'usr.bin/strings')
| -rw-r--r-- | usr.bin/strings/strings.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/strings/strings.c b/usr.bin/strings/strings.c index af33b5e2a58f..88784206f844 100644 --- a/usr.bin/strings/strings.c +++ b/usr.bin/strings/strings.c @@ -54,7 +54,9 @@ static char sccsid[] = "@(#)strings.c 8.2 (Berkeley) 1/28/94"; #include <unistd.h> #define DEF_LEN 4 /* default minimum string length */ -#define ISSTR(ch) (isalnum(ch) || ispunct(ch) || isascii(ch) && isprint(ch) || ch == '\t') +#define ISSTR(ch) (isalnum(ch) || ispunct(ch) || \ + isspace(ch) && (!iscntrl(ch) || ch == '\t') || \ + isascii(ch) && isprint(ch)) typedef struct exec EXEC; /* struct exec cast */ |
