diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-04-04 18:41:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-04-04 18:41:47 +0000 |
commit | 4cb76026747c1c4f9db0090c18888232ece673b0 (patch) | |
tree | 602a27b829dddac7decfb4066bdb458d30c95786 /usr.bin/tn3270 | |
parent | 18423be53229bf49c861cdd4941144cdb72d7585 (diff) |
when mktemp() is hard to fix, use 10 X
Diffstat (limited to 'usr.bin/tn3270')
-rw-r--r-- | usr.bin/tn3270/sys_curses/system.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tn3270/sys_curses/system.c b/usr.bin/tn3270/sys_curses/system.c index 3137c43aefd..46668849160 100644 --- a/usr.bin/tn3270/sys_curses/system.c +++ b/usr.bin/tn3270/sys_curses/system.c @@ -1,4 +1,4 @@ -/* $OpenBSD: system.c,v 1.3 1996/12/06 02:09:04 deraadt Exp $ */ +/* $OpenBSD: system.c,v 1.4 1997/04/04 18:41:33 deraadt Exp $ */ /*- * Copyright (c) 1988 The Regents of the University of California. @@ -35,7 +35,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)system.c 4.5 (Berkeley) 4/26/91";*/ -static char rcsid[] = "$OpenBSD: system.c,v 1.3 1996/12/06 02:09:04 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: system.c,v 1.4 1997/04/04 18:41:33 deraadt Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -643,7 +643,7 @@ char *argv[]; /* First, create verification file. */ do { - keyname = mktemp(strdup("/tmp/apiXXXXXX")); + keyname = mktemp(strdup("/tmp/apiXXXXXXXXXX")); fd = open(keyname, O_RDWR|O_CREAT|O_EXCL, IREAD|IWRITE); } while ((fd == -1) && (errno == EEXIST)); |