X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/8def70c3ec6f81f95673c0de67a75b5a6b2e9e1c..e436e0602b66c82acf0741ced8f9a19bd2060e70:/unix/uxsftp.c diff --git a/unix/uxsftp.c b/unix/uxsftp.c index a9af614f..b26c4b5a 100644 --- a/unix/uxsftp.c +++ b/unix/uxsftp.c @@ -202,6 +202,7 @@ WFile *open_existing_wfile(char *name, uint64 *size) ret = snew(WFile); ret->fd = fd; + ret->name = dupstr(name); if (size) { struct stat statbuf;