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