From 479f8d01393c541fede1688676f860bb49d44668 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Thu, 20 May 1999 12:53:14 -0400 Subject: snapshot of project "lynx", label v2-8-2pre_5 --- WWW/Library/Implementation/HTFTP.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'WWW/Library/Implementation/HTFTP.c') 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); -- cgit 1.4.1-2-gfad0