summaryrefslogtreecommitdiff
path: root/bin/csh/str.c
diff options
context:
space:
mode:
authorVincent Labrecque <vincent@cvs.openbsd.org>2003-04-30 21:06:11 +0000
committerVincent Labrecque <vincent@cvs.openbsd.org>2003-04-30 21:06:11 +0000
commit435f4c6f36d4333645ea1e25467c6160abc8fee0 (patch)
tree97efed292f0a17093473ad07050d88fd1c928043 /bin/csh/str.c
parenta21b9b2af184cc264456fa8c3a4f6a6b5a1a474f (diff)
strvis -> strnvis
ok millert@
Diffstat (limited to 'bin/csh/str.c')
-rw-r--r--bin/csh/str.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/csh/str.c b/bin/csh/str.c
index 66a48d5f0f9..f0807a52610 100644
--- a/bin/csh/str.c
+++ b/bin/csh/str.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: str.c,v 1.9 2003/04/15 01:17:33 deraadt Exp $ */
+/* $OpenBSD: str.c,v 1.10 2003/04/30 21:06:10 vincent Exp $ */
/* $NetBSD: str.c,v 1.6 1995/03/21 09:03:24 cgd Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)str.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: str.c,v 1.9 2003/04/15 01:17:33 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: str.c,v 1.10 2003/04/30 21:06:10 vincent Exp $";
#endif
#endif /* not lint */
@@ -500,7 +500,7 @@ vis_str(cp)
* XXX: When we are in AsciiOnly we want all characters >= 0200 to
* be encoded, but currently there is no way in vis to do that.
*/
- (void) strvis(sdst, short2str(cp), VIS_NOSLASH);
+ (void) strnvis(sdst, short2str(cp), dstsize, VIS_NOSLASH);
return (sdst);
}