summary refs log tree commit diff
path: root/stdio-common/tmpfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/tmpfile.c')
-rw-r--r--stdio-common/tmpfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdio-common/tmpfile.c b/stdio-common/tmpfile.c
index 4a9e4e2e0a..cfd3606bec 100644
--- a/stdio-common/tmpfile.c
+++ b/stdio-common/tmpfile.c
@@ -36,7 +36,7 @@ tmpfile (void)
   int fd;
   FILE *f;
 
-  if (__path_search (buf, FILENAME_MAX, NULL, "tmpf"))
+  if (__path_search (buf, FILENAME_MAX, NULL, "tmpf", 0))
     return NULL;
   fd = __gen_tempname (buf, 1, 0);
   if (fd < 0)