summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorVincent Labrecque <vincent@cvs.openbsd.org>2003-04-30 21:27:24 +0000
committerVincent Labrecque <vincent@cvs.openbsd.org>2003-04-30 21:27:24 +0000
commitcd1d0a59d2ea880c00ea2092ce288d4ad0e52ee3 (patch)
tree2701e4fa53088ec66a52ef0b4a3bcd8f98384ec2 /usr.bin
parent435f4c6f36d4333645ea1e25467c6160abc8fee0 (diff)
strvis -> strnvis
ok millert
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/showmount/showmount.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/showmount/showmount.c b/usr.bin/showmount/showmount.c
index 0d048ad7c08..d2a3aef0123 100644
--- a/usr.bin/showmount/showmount.c
+++ b/usr.bin/showmount/showmount.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: showmount.c,v 1.10 2002/02/16 21:27:52 millert Exp $ */
+/* $OpenBSD: showmount.c,v 1.11 2003/04/30 21:27:23 vincent Exp $ */
/* $NetBSD: showmount.c,v 1.7 1996/05/01 18:14:10 cgd Exp $ */
/*
@@ -47,7 +47,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)showmount.c 8.3 (Berkeley) 3/29/95";
#endif
-static char rcsid[] = "$OpenBSD: showmount.c,v 1.10 2002/02/16 21:27:52 millert Exp $";
+static char rcsid[] = "$OpenBSD: showmount.c,v 1.11 2003/04/30 21:27:23 vincent Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -220,14 +220,15 @@ main(argc, argv)
printf("Exports list on %s:\n", host);
exp = exports;
while (exp) {
- strvis(vp, exp->ex_dirp, VIS_CSTYLE);
+ strnvis(vp, exp->ex_dirp, sizeof vp, VIS_CSTYLE);
printf("%-35s", vp);
grp = exp->ex_groups;
if (grp == NULL) {
printf("Everyone\n");
} else {
while (grp) {
- strvis(vn, grp->gr_name, VIS_CSTYLE);
+ strnvis(vn, grp->gr_name, sizeof vn,
+ VIS_CSTYLE);
printf("%s ", vn);
grp = grp->gr_next;
}