mirror of
https://github.com/opnsense/src.git
synced 2026-04-20 21:59:20 -04:00
Use more complicated printable test to remove unnecessary 8bit chars
This commit is contained in:
parent
0145d80c3c
commit
4c19ddc5f1
1 changed files with 3 additions and 1 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue