summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/tempnam.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-02-12 20:44:47 +0000
committerderaadt <deraadt@openbsd.org>1997-02-12 20:44:47 +0000
commit9a23e4f5089d0050f4ee719262dc2b5f1994e839 (patch)
treeccfdca39b775ad5552c99609c7544c65bc42ac71 /lib/libc/stdio/tempnam.c
parentDon't print garbage on EOF. (diff)
downloadwireguard-openbsd-9a23e4f5089d0050f4ee719262dc2b5f1994e839.tar.xz
wireguard-openbsd-9a23e4f5089d0050f4ee719262dc2b5f1994e839.zip
more XXXX for mktemp
Diffstat (limited to 'lib/libc/stdio/tempnam.c')
-rw-r--r--lib/libc/stdio/tempnam.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/stdio/tempnam.c b/lib/libc/stdio/tempnam.c
index 9e5b71177f5..d2060b0d18e 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.7 1997/01/20 07:46:57 graichen Exp $";
+static char rcsid[] = "$OpenBSD: tempnam.c,v 1.8 1997/02/12 20:44:47 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@@ -62,26 +62,26 @@ tempnam(dir, pfx)
pfx = "tmp.";
if (issetugid() == 0 && (f = getenv("TMPDIR"))) {
- (void)snprintf(name, MAXPATHLEN, "%s%s%sXXXXXX", f,
+ (void)snprintf(name, MAXPATHLEN, "%s%s%sXXXXXXXXX", f,
*(f + strlen(f) - 1) == '/'? "": "/", pfx);
if (f = _mktemp(name))
return(f);
}
if (f = (char *)dir) {
- (void)snprintf(name, MAXPATHLEN, "%s%s%sXXXXXX", f,
+ (void)snprintf(name, MAXPATHLEN, "%s%s%sXXXXXXXXX", f,
*(f + strlen(f) - 1) == '/'? "": "/", pfx);
if (f = _mktemp(name))
return(f);
}
f = P_tmpdir;
- (void)snprintf(name, MAXPATHLEN, "%s%sXXXXXX", f, pfx);
+ (void)snprintf(name, MAXPATHLEN, "%s%sXXXXXXXXX", f, pfx);
if (f = _mktemp(name))
return(f);
f = _PATH_TMP;
- (void)snprintf(name, MAXPATHLEN, "%s%sXXXXXX", f, pfx);
+ (void)snprintf(name, MAXPATHLEN, "%s%sXXXXXXXXX", f, pfx);
if (f = _mktemp(name))
return(f);