Patch from Alejandro Sedeno, somewhat modified by me, which
[u/mdw/putty] / unix / uxsftp.c
index a9af614..b26c4b5 100644 (file)
@@ -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;