summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvincent <vincent@openbsd.org>2003-04-30 21:34:47 +0000
committervincent <vincent@openbsd.org>2003-04-30 21:34:47 +0000
commit926b7e9ccb55dea84b2ca741331508a48427bd32 (patch)
tree747e30cb9223da9fc3055e3448284c954fdb3973
parentstrvis -> strnvis, and add a place for the NUL byte that was missing (diff)
downloadwireguard-openbsd-926b7e9ccb55dea84b2ca741331508a48427bd32.tar.xz
wireguard-openbsd-926b7e9ccb55dea84b2ca741331508a48427bd32.zip
strvis -> strnvis
ok millert
-rw-r--r--usr.bin/sup/src/scan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sup/src/scan.c b/usr.bin/sup/src/scan.c
index f69c92e6c63..cd3ee249e7a 100644
--- a/usr.bin/sup/src/scan.c
+++ b/usr.bin/sup/src/scan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scan.c,v 1.13 2002/02/16 21:27:54 millert Exp $ */
+/* $OpenBSD: scan.c,v 1.14 2003/04/30 21:34:47 vincent Exp $ */
/*
* Copyright (c) 1992 Carnegie Mellon University
@@ -1006,7 +1006,7 @@ recordone(t,v)
fprintf(scanF, "B");
if (t->Tflags&FNOACCT)
fprintf(scanF, "N");
- strvis(fname, t->Tname, VIS_WHITE);
+ strnvis(fname, t->Tname, sizeof fname, VIS_WHITE);
fprintf(scanF, "%o %d %d %s\n", t->Tmode, t->Tctime, t->Tmtime, fname);
(void) Tprocess(t->Texec, recordexec, scanF);
return (SCMOK);