OSDN Git Service

mkostemp: fix implementation
[uclinux-h8/uClibc.git] / libc / stdio / tempnam.c
index 232ed02..74bb26e 100644 (file)
@@ -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);