diff options
author | Wayne Davison <wayned@users.sourceforge.net> | 2004-10-18 19:07:55 +0000 |
---|---|---|
committer | Wayne Davison <wayned@users.sourceforge.net> | 2004-10-18 19:07:55 +0000 |
commit | 8901caa58f133b40f92f819861fbaf4c797a518f (patch) | |
tree | a63a6f2d4f6a1202d5ed892ef92dab453fde700a /Src/Modules | |
parent | 9a4cf8cf7240a4d029acd23420ffd877de16d1f1 (diff) | |
download | zsh-8901caa58f133b40f92f819861fbaf4c797a518f.tar.gz zsh-8901caa58f133b40f92f819861fbaf4c797a518f.tar.xz zsh-8901caa58f133b40f92f819861fbaf4c797a518f.zip |
Call gettempname() with its new args.
Diffstat (limited to 'Src/Modules')
-rw-r--r-- | Src/Modules/zftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Modules/zftp.c b/Src/Modules/zftp.c index a36b6bf3e..621e0cf0d 100644 --- a/Src/Modules/zftp.c +++ b/Src/Modules/zftp.c @@ -1971,7 +1971,7 @@ zftp_open(char *name, char **args, int flags) * However, it is closed whenever there are no connections open. */ if (zfstatfd == -1) { - fname = gettempname(); + fname = gettempname(NULL, 1); zfstatfd = open(fname, O_RDWR|O_CREAT|O_EXCL, 0600); DPUTS(zfstatfd == -1, "zfstatfd not created"); #if defined(F_SETFD) && defined(FD_CLOEXEC) |