[Top][All Lists]

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

lynx-dev DOS patch for "change directory"

From: Doug Kaufman
Subject: lynx-dev DOS patch for "change directory"
Date: Sat, 15 Jul 2000 20:40:35 -0700 (PDT)

The new "change directory" code has at least two problems on the
DJGPP port. It doesn't take into account that DOS absolute pathnames
don't start with a "/". It causes a crash and traceback (equivalent
to core dump) when it frees "tmp". I don't understand exactly why
freeing "tmp" causes the crash, but commenting it out seems to fix the
problem. Someone else will have to decide if the code is correct for
other platforms. This was tested with 2.8.4dev.4, with DJGPP 2.03, gcc
2.95.2, PDCurses 2.4, compiled with libintl.a and libwmemu.a. Platform
is DOS 6.22 (Windows not running).

--- lynx2-8-4/src/LYMainLoop.c  Fri Jun 23 08:15:08 2000
+++ lynx2-8-4/src/      Sat Jul 15 19:44:40 2000
@@ -5102,10 +5102,15 @@
            tmp = wwwName(buf2);
            StrAllocCopy(addr, "file://localhost");
+#ifdef __DJGPP__
+           StrAllocCat(addr, "/");
+           StrAllocCat(addr, tmp);
            StrAllocCat(addr, tmp);
            if (tmp != buf2)
            /*since wwwName is nop on unix and allocates something on VMS and 
+#endif /* __DJGPP__ */
            newdoc.address = addr;
            newdoc.isHEAD = FALSE;

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]