... and there's a Unix port of PSCP. Ooh.
[u/mdw/putty] / scp.c
diff --git a/scp.c b/scp.c
index 53cb60a..00852bc 100644 (file)
--- a/scp.c
+++ b/scp.c
@@ -1711,7 +1711,7 @@ static void sink(char *targ, char *src)
            }
 
            if (targ[0] != '\0')
-               destfname = dupcat(targ, "\\", striptarget, NULL);
+               destfname = dir_file_cat(targ, striptarget);
            else
                destfname = dupstr(striptarget);
        } else {