diff options
Diffstat (limited to 'Src')
-rw-r--r-- | Src/utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Src/utils.c b/Src/utils.c index db404ec26..75108765b 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -1091,7 +1091,12 @@ gettempname(void) if (!(s = getsparam("TMPPREFIX"))) s = DEFAULT_TMPPREFIX; +#ifdef HAVE__MKTEMP + /* Zsh uses mktemp() safely, so silence the warnings */ + return ((char *) _mktemp(dyncat(unmeta(s), "XXXXXX"))); +#else return ((char *) mktemp(dyncat(unmeta(s), "XXXXXX"))); +#endif } /* Check if a string contains a token */ |