summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/tempnam.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1997-04-03 05:31:37 +0000
committermillert <millert@openbsd.org>1997-04-03 05:31:37 +0000
commit763196a6ed6f148e9225f99ffd8804a0ce192d19 (patch)
treebb539aac0b170fa782babf3b9ed8d810a6124d95 /lib/libc/stdio/tempnam.c
parentPR#141 from David Leonard <d@occult.fnarg.net.au> with some small mods by (diff)
downloadwireguard-openbsd-763196a6ed6f148e9225f99ffd8804a0ce192d19.tar.xz
wireguard-openbsd-763196a6ed6f148e9225f99ffd8804a0ce192d19.zip
10 X's for mktemp() and mkstemp().
Diffstat (limited to 'lib/libc/stdio/tempnam.c')
-rw-r--r--lib/libc/stdio/tempnam.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdio/tempnam.c b/lib/libc/stdio/tempnam.c
index d2060b0d18e..7c5f95e642d 100644
--- a/lib/libc/stdio/tempnam.c
+++ b/lib/libc/stdio/tempnam.c
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: tempnam.c,v 1.8 1997/02/12 20:44:47 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: tempnam.c,v 1.9 1997/04/03 05:31:37 millert Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@@ -62,14 +62,14 @@ tempnam(dir, pfx)
pfx = "tmp.";
if (issetugid() == 0 && (f = getenv("TMPDIR"))) {
- (void)snprintf(name, MAXPATHLEN, "%s%s%sXXXXXXXXX", f,
+ (void)snprintf(name, MAXPATHLEN, "%s%s%sXXXXXXXXXX", f,
*(f + strlen(f) - 1) == '/'? "": "/", pfx);
if (f = _mktemp(name))
return(f);
}
if (f = (char *)dir) {
- (void)snprintf(name, MAXPATHLEN, "%s%s%sXXXXXXXXX", f,
+ (void)snprintf(name, MAXPATHLEN, "%s%s%sXXXXXXXXXX", f,
*(f + strlen(f) - 1) == '/'? "": "/", pfx);
if (f = _mktemp(name))
return(f);