From 4f38e89827a4e7bc30461eec47c5b6416589d6dc Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Mon, 10 Jan 2000 09:17:46 +0000 Subject: [PATCH] 10 X's in mkstemp(). --- contrib/nvi/common/exf.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/contrib/nvi/common/exf.c b/contrib/nvi/common/exf.c index 6f0e160f272c..57f5748019b0 100644 --- a/contrib/nvi/common/exf.c +++ b/contrib/nvi/common/exf.c @@ -5,12 +5,17 @@ * Keith Bostic. All rights reserved. * * See the LICENSE file for redistribution information. + * */ #include "config.h" #ifndef lint +#if 0 static const char sccsid[] = "@(#)exf.c 10.49 (Berkeley) 10/10/96"; +#endif +static const char rcsid[] = + "$FreeBSD$"; #endif /* not lint */ #include @@ -185,7 +190,7 @@ file_init(sp, frp, rcv_name, flags) if (opts_empty(sp, O_DIRECTORY, 0)) goto err; (void)snprintf(tname, sizeof(tname), - "%s/vi.XXXXXX", O_STR(sp, O_DIRECTORY)); + "%s/vi.XXXXXXXXXX", O_STR(sp, O_DIRECTORY)); if ((fd = mkstemp(tname)) == -1) { msgq(sp, M_SYSERR, "237|Unable to create temporary file");