[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev PATCH for LYDownload.c (2.8.5dev.16)
From: |
Doug Kaufman |
Subject: |
lynx-dev PATCH for LYDownload.c (2.8.5dev.16) |
Date: |
Tue, 17 Jun 2003 22:27:26 -0700 (PDT) |
The function "View temporary file" doesn't work if SAVE_SPACE or
LYNX_SAVE_SPACE are defined, since the function erroneously prepends
this directory to the absolute path of the temp file. Temporary files
aren't in the SAVE_SPACE directory. I think that this patch fixes it -
tested on Cygwin and DJGPP. I also put in the fix for the DJGPP path
not starting with "/".
Doug
--- lynx2-8-5/src/LYDownload.c.ori 2003-06-01 17:16:28.000000000 -0800
+++ lynx2-8-5/src/LYDownload.c 2003-06-17 22:11:42.000000000 -0800
@@ -549,8 +549,10 @@
if (SuffixIs(data_file, HTML_SUFFIX)
|| SuffixIs(data_file, TEXT_SUFFIX)) {
fprintf(fp0,
- " <a href=\"file://localhost%s%s\">%s</a>\n",
- NonNull(lynx_save_space),
+ " <a href=\"file://localhost");
+ if (!LYIsHtmlSep(*data_file))
+ fprintf(fp0, "/");
+ fprintf(fp0, "%s\">%s</a>\n",
data_file,
gettext("View temporary file"));
}
--
Doug Kaufman
Internet: address@hidden
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden
- lynx-dev PATCH for LYDownload.c (2.8.5dev.16),
Doug Kaufman <=