diff options
author | 1997-04-03 05:31:37 +0000 | |
---|---|---|
committer | 1997-04-03 05:31:37 +0000 | |
commit | 763196a6ed6f148e9225f99ffd8804a0ce192d19 (patch) | |
tree | bb539aac0b170fa782babf3b9ed8d810a6124d95 /lib/libc/stdio/tmpnam.c | |
parent | PR#141 from David Leonard <d@occult.fnarg.net.au> with some small mods by (diff) | |
download | wireguard-openbsd-763196a6ed6f148e9225f99ffd8804a0ce192d19.tar.xz wireguard-openbsd-763196a6ed6f148e9225f99ffd8804a0ce192d19.zip |
10 X's for mktemp() and mkstemp().
Diffstat (limited to 'lib/libc/stdio/tmpnam.c')
-rw-r--r-- | lib/libc/stdio/tmpnam.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdio/tmpnam.c b/lib/libc/stdio/tmpnam.c index 865800f3c12..d209e3c1c42 100644 --- a/lib/libc/stdio/tmpnam.c +++ b/lib/libc/stdio/tmpnam.c @@ -35,7 +35,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: tmpnam.c,v 1.5 1997/01/20 07:46:57 graichen Exp $"; +static char rcsid[] = "$OpenBSD: tmpnam.c,v 1.6 1997/04/03 05:31:38 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -57,7 +57,7 @@ tmpnam(s) if (s == NULL) s = buf; - (void)snprintf(s, L_tmpnam, "%stmp.%lu.XXXXXX", P_tmpdir, tmpcount); + (void)snprintf(s, L_tmpnam, "%stmp.%lu.XXXXXXXXX", P_tmpdir, tmpcount); ++tmpcount; return (_mktemp(s)); } |