mirror of
https://github.com/opnsense/src.git
synced 2026-02-20 00:11:07 -05:00
Oops, fix upper controls test
This commit is contained in:
parent
77caf2118f
commit
07484d1f24
1 changed files with 3 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ static const char copyright[] =
|
|||
static char sccsid[] = "@(#)write.c 8.1 (Berkeley) 6/6/93";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id: write.c,v 1.7 1997/08/26 11:23:37 charnier Exp $";
|
||||
"$Id: write.c,v 1.8 1997/09/15 00:08:19 ache Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
|
|
@ -310,7 +310,8 @@ wr_fputs(s)
|
|||
for (; *s != '\0'; ++s) {
|
||||
if (*s == '\n') {
|
||||
PUTC('\r');
|
||||
} else if (*s <= 0xA0 || /* disable upper controls */
|
||||
} else if (((*s & 0x80) && *s < 0xA0) ||
|
||||
/* disable upper controls */
|
||||
(!isprint(*s) && !isspace(*s) && *s != '\007')
|
||||
) {
|
||||
if (*s & 0x80) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue