[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev PATCH for LYUtils.c

From: Doug Kaufman
Subject: lynx-dev PATCH for LYUtils.c
Date: Sat, 14 Jun 2003 14:42:00 -0700 (PDT)

There is a problem with LYUtils.c that appeared sometime between
2.8.4dev.17 and 2.8.4dev.20. This is apparent since the URL for the
lynx.cfg file shown in the LYNXCFG:// page doesn't work under DJGPP if
the value wasn't given as an absolute URL. The problem was the
assumption that getcwd() returns a value that starts with a "/", while
the DJGPP version returns a value that starts with a drive letter (e.g.,
c:/). This should fix it.

--- lynx2-8-5/src/LYUtils.c.orig        2003-06-01 17:16:28.000000000 -0800
+++ lynx2-8-5/src/LYUtils.c     2003-06-14 14:33:28.000000000 -0800
@@ -6681,6 +6682,8 @@
     if (!LYisAbsPath(source)) {
        char temp[LY_MAXPATH];
+       if (!LYIsHtmlSep(*temp))
+               LYAddHtmlSep(target);
        StrAllocCat(*target, temp);
     if (!LYIsHtmlSep(*leaf))

Doug Kaufman
Internet: address@hidden

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]