summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvincent <vincent@openbsd.org>2003-04-30 21:27:23 +0000
committervincent <vincent@openbsd.org>2003-04-30 21:27:23 +0000
commitb5339e906438137f4dd07e940d80e6cd7f0cef59 (patch)
tree2ff86382950b5c1f828e1e14de4ad0bd39d09bfb
parentstrvis -> strnvis (diff)
downloadwireguard-openbsd-b5339e906438137f4dd07e940d80e6cd7f0cef59.tar.xz
wireguard-openbsd-b5339e906438137f4dd07e940d80e6cd7f0cef59.zip
strvis -> strnvis
ok millert
-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;
}