diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1999-05-20 12:53:14 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1999-05-20 12:53:14 -0400 |
commit | 479f8d01393c541fede1688676f860bb49d44668 (patch) | |
tree | 8d7194665440c01cae7f2d5015a1333c19348a67 /WWW/Library/Implementation/HTFTP.c | |
parent | c7742b57ba05ecb66932512320e2a7e8adaf11c5 (diff) | |
download | lynx-snapshots-479f8d01393c541fede1688676f860bb49d44668.tar.gz |
snapshot of project "lynx", label v2-8-2pre_5
Diffstat (limited to 'WWW/Library/Implementation/HTFTP.c')
-rw-r--r-- | WWW/Library/Implementation/HTFTP.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/WWW/Library/Implementation/HTFTP.c b/WWW/Library/Implementation/HTFTP.c index 860845d2..3a8edbd4 100644 --- a/WWW/Library/Implementation/HTFTP.c +++ b/WWW/Library/Implementation/HTFTP.c @@ -3014,16 +3014,19 @@ PUBLIC int HTFTPLoad ARGS4( /** Otherwise, go to appropriate directory and doctor filename **/ if (!strncmp(filename, "/~", 2)) filename += 2; + CTRACE(tfp, "check '%s' to translate x/y/ to x[y]\n", filename); if (!included_device && (cp = strchr(filename, '/')) != NULL && (cp1 = strrchr(cp, '/')) != NULL && cp != cp1) { char *tmp = 0; StrAllocCopy(tmp, cp+1); - strcpy(tmp + (cp1-cp) + 5, "]"); + tmp[(cp1-cp)] = 0; + CTRACE(tfp, "change command '%s'\n", command); while ((cp2 = strrchr(command, '/')) != NULL) *cp2 = '.'; + CTRACE(tfp, "...to command '%s'\n", command); status = send_cwd(tmp); FREE(tmp); |