X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/8def70c3ec6f81f95673c0de67a75b5a6b2e9e1c..c44e5afc4f2ab0d9e0c11a1f2ccd68e97b482230:/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;