summaryrefslogtreecommitdiff
path: root/libc/stdio/tempnam.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdio/tempnam.c')
-rw-r--r--libc/stdio/tempnam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdio/tempnam.c b/libc/stdio/tempnam.c
index faf7c5ecb..66c905db8 100644
--- a/libc/stdio/tempnam.c
+++ b/libc/stdio/tempnam.c
@@ -36,7 +36,7 @@ tempnam (const char *dir, const char *pfx)
if (__path_search (buf, FILENAME_MAX, dir, pfx, 1))
return NULL;
- if (__gen_tempname (buf, __GT_NOCREATE))
+ if (__gen_tempname (buf, __GT_NOCREATE, 0))
return NULL;
return strdup (buf);