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 232ed02c5..74bb26ed5 100644
--- a/libc/stdio/tempnam.c
+++ b/libc/stdio/tempnam.c
@@ -35,7 +35,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, 0))
+ if (__gen_tempname (buf, __GT_NOCREATE, 0, 0))
return NULL;
return strdup (buf);