diff options
author | 2003-04-30 21:34:47 +0000 | |
---|---|---|
committer | 2003-04-30 21:34:47 +0000 | |
commit | 926b7e9ccb55dea84b2ca741331508a48427bd32 (patch) | |
tree | 747e30cb9223da9fc3055e3448284c954fdb3973 | |
parent | strvis -> strnvis, and add a place for the NUL byte that was missing (diff) | |
download | wireguard-openbsd-926b7e9ccb55dea84b2ca741331508a48427bd32.tar.xz wireguard-openbsd-926b7e9ccb55dea84b2ca741331508a48427bd32.zip |
strvis -> strnvis
ok millert
-rw-r--r-- | usr.bin/sup/src/scan.c | 4 |
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); |