diff options
Diffstat (limited to 'misc/mktemp.c')
-rw-r--r-- | misc/mktemp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/misc/mktemp.c b/misc/mktemp.c index a60f95c067..737e329fc3 100644 --- a/misc/mktemp.c +++ b/misc/mktemp.c @@ -22,10 +22,9 @@ The last six characters of TEMPLATE must be "XXXXXX"; they are replaced with a string that makes the filename unique. */ char * -__mktemp (template) - char *template; +__mktemp (char *template) { - if (__gen_tempname (template, 0, 0, __GT_NOCREATE) < 0) + if (__gen_tempname (template, 0, &__gen_tempname_try_nocreate, NULL) < 0) /* We return the null string if we can't find a unique file name. */ template[0] = '\0'; |