diff options
author | Martijn van Duren <martijn@cvs.openbsd.org> | 2016-08-01 20:30:26 +0000 |
---|---|---|
committer | Martijn van Duren <martijn@cvs.openbsd.org> | 2016-08-01 20:30:26 +0000 |
commit | b284342bfabf678279674f9d69daa8ee6a831c58 (patch) | |
tree | be00d18363dc48d9ad1e4ea56cd8d286a83e6100 /usr.bin/wall/wall.c | |
parent | f0e8e842a43663f52608bf9a040a4e52ebc93c4f (diff) |
Allow a bel character in wall. This was missed when migrating away from
vis(3). This brings the allowed characters on par with write(1).
Noticed by consus <at> gmx <dot> com
OK millert@
Diffstat (limited to 'usr.bin/wall/wall.c')
-rw-r--r-- | usr.bin/wall/wall.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/wall/wall.c b/usr.bin/wall/wall.c index dd17183d5ab..b45c4e6e44b 100644 --- a/usr.bin/wall/wall.c +++ b/usr.bin/wall/wall.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wall.c,v 1.31 2016/05/08 17:09:42 schwarze Exp $ */ +/* $OpenBSD: wall.c,v 1.32 2016/08/01 20:30:25 martijn Exp $ */ /* $NetBSD: wall.c,v 1.6 1994/11/17 07:17:58 jtc Exp $ */ /* @@ -232,7 +232,7 @@ makemsg(char *fname) putc('\n', fp); cnt = -1; } else if (!isu8cont(ch)) - putc(isprint(ch) || isspace(ch) ? + putc(isprint(ch) || isspace(ch) || ch == '\a' ? ch : '?', fp); } (void)fprintf(fp, "%79s\r\n", " "); |