diff options
author | 2003-04-30 21:06:10 +0000 | |
---|---|---|
committer | 2003-04-30 21:06:10 +0000 | |
commit | 6897a462334236f51cf736d51bb2b2e11eb9464f (patch) | |
tree | 48792701b0830494283fdd5d8c96a14143b91eca | |
parent | fix invalid .Pf macro usage introduced in previous commit (diff) | |
download | wireguard-openbsd-6897a462334236f51cf736d51bb2b2e11eb9464f.tar.xz wireguard-openbsd-6897a462334236f51cf736d51bb2b2e11eb9464f.zip |
strvis -> strnvis
ok millert@
-rw-r--r-- | bin/csh/str.c | 6 |
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); } |