diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2016-06-08 17:35:13 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2016-06-08 17:35:13 +0000 |
commit | 46f0e7ccdfb34f49b0cc1de7d00c1429a00f1ff3 (patch) | |
tree | b8a3cd9c4a97c3c3216b5fe77988ac55b76d4a3b /unvis.c | |
parent | 2110fd8ff6c6fdfe927e54509782d103c3ecbf16 (diff) |
Notes
Diffstat (limited to 'unvis.c')
-rw-r--r-- | unvis.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $NetBSD: unvis.c,v 1.41 2012/12/15 04:29:53 matt Exp $ */ +/* $NetBSD: unvis.c,v 1.44 2014/09/26 15:43:36 roy Exp $ */ /*- * Copyright (c) 1989, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)unvis.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: unvis.c,v 1.41 2012/12/15 04:29:53 matt Exp $"); +__RCSID("$NetBSD: unvis.c,v 1.44 2014/09/26 15:43:36 roy Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -313,6 +313,12 @@ unvis(char *cp, int c, int *astate, int flag) */ *astate = SS(0, S_GROUND); return UNVIS_NOCHAR; + default: + if (isgraph(c)) { + *cp = c; + *astate = SS(0, S_GROUND); + return UNVIS_VALID; + } } goto bad; |