summaryrefslogtreecommitdiff
path: root/lib/libc/gen/vis.c
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2005-08-29 18:38:42 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2005-08-29 18:38:42 +0000
commit36685f611f7f08b8a08b76b11d2febf166c5dced (patch)
tree69f24eee6886273ad79f593f9a7029bc12963fae /lib/libc/gen/vis.c
parent7e6986f4c4142360e2e4a81a04e417d105211a39 (diff)
Remove spurious call to isgraph() that sneaked in in rev 1.16.
ok millert@ deraadt@
Diffstat (limited to 'lib/libc/gen/vis.c')
-rw-r--r--lib/libc/gen/vis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/vis.c b/lib/libc/gen/vis.c
index d7fc4b5cf9c..b3909fc4970 100644
--- a/lib/libc/gen/vis.c
+++ b/lib/libc/gen/vis.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vis.c,v 1.17 2005/08/28 23:05:13 millert Exp $ */
+/* $OpenBSD: vis.c,v 1.18 2005/08/29 18:38:41 otto Exp $ */
/*-
* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
@@ -104,7 +104,7 @@ vis(char *dst, int c, int flag, int nextc)
goto done;
}
}
- if (((c & 0177) == ' ') || isgraph((u_char)c) || (flag & VIS_OCTAL)) {
+ if (((c & 0177) == ' ') || (flag & VIS_OCTAL)) {
*dst++ = '\\';
*dst++ = ((u_char)c >> 6 & 07) + '0';
*dst++ = ((u_char)c >> 3 & 07) + '0';