summaryrefslogtreecommitdiff
path: root/bin/ed
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-07-03 06:01:21 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-07-03 06:01:21 +0000
commitd155d0bf6d3c992d5a429c49c4109da069040c35 (patch)
tree96068f01ddce00945df5c2d1f3c442f7360a1668 /bin/ed
parent1be890ed2d818fd687aa59e444c7ee921972dad2 (diff)
use 10 X in mkstemp string for improved speed at race winning
Diffstat (limited to 'bin/ed')
-rw-r--r--bin/ed/buf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ed/buf.c b/bin/ed/buf.c
index 6f170c575df..878c89423ff 100644
--- a/bin/ed/buf.c
+++ b/bin/ed/buf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: buf.c,v 1.8 1998/04/30 05:55:04 deraadt Exp $ */
+/* $OpenBSD: buf.c,v 1.9 1998/07/03 06:01:17 deraadt Exp $ */
/* $NetBSD: buf.c,v 1.15 1995/04/23 10:07:28 cgd Exp $ */
/* buf.c: This file contains the scratch-file buffer rountines for the
@@ -33,7 +33,7 @@
#if 0
static char *rcsid = "@(#)buf.c,v 1.4 1994/02/01 00:34:35 alm Exp";
#else
-static char rcsid[] = "$OpenBSD: buf.c,v 1.8 1998/04/30 05:55:04 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: buf.c,v 1.9 1998/07/03 06:01:17 deraadt Exp $";
#endif
#endif /* not lint */
@@ -208,7 +208,7 @@ open_sbuf()
int fd = -1;
isbinary = newline_added = 0;
- strcpy(sfn, "/tmp/ed.XXXXXX");
+ strcpy(sfn, "/tmp/ed.XXXXXXXXXX");
if ((fd = mkstemp(sfn)) == -1 ||
(sfp = fdopen(fd, "w+")) == NULL) {
if (fd != -1)