OSDN Git Service

mkostemp: fix implementation
[uclinux-h8/uClibc.git] / libc / stdlib / mktemp.c
index edd001d..1ff93da 100644 (file)
@@ -24,7 +24,7 @@
  * they are replaced with a string that makes the filename unique.  */
 char *mktemp(char *template)
 {
-       if (__gen_tempname (template, __GT_NOCREATE, 0) < 0)
+       if (__gen_tempname (template, __GT_NOCREATE, 0, 0) < 0)
                /* We return the null string if we can't find a unique file name.  */
                template[0] = '\0';