[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev Another DOS patch
From: |
Doug Kaufman |
Subject: |
lynx-dev Another DOS patch |
Date: |
Tue, 1 Sep 1998 23:56:42 -0700 (PDT) |
This should fix the problem downloading in DOS when PWD is set to the
root directory of a drive (e.g. f:/).
Doug
*** lynx2-8-1/src/LYDownload.c Sat Aug 29 16:22:40 1998
--- lynx2-8-1/src/LYDownload.c.new Tue Sep 1 23:40:52 1998
***************
*** 269,274 ****
--- 269,278 ----
else
#endif /* __EMX__*/
cp = NULL;
+ #ifdef __DJGPP__
+ if ((len = strlen(cp)) > 0 && cp[len-1] == '/')
+ cp[len-1] = '\0';
+ #endif /* __DJGPP__ */
if (cp) {
sprintf(command, "%s/%s", cp, buffer);
#ifdef DOSPATH
__
Doug Kaufman
Internet: address@hidden (preferred)
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- lynx-dev Another DOS patch,
Doug Kaufman <=