# ------------------------------------------------------------------------------ # CHANGES | 11 +++++++++++ # README | 2 +- # WWW/Library/Implementation/HTString.c | 6 +++++- # WWW/Library/Implementation/HTUtils.h | 4 ++++ # configure | 2 +- # configure.in | 4 ++-- # lynx.cfg | 4 ++-- # src/HTAlert.c | 17 ++++++++++------- # src/LYKeymap.c | 7 +++++-- # userdefs.h | 4 ++-- # 10 files changed, 43 insertions(+), 18 deletions(-) # ------------------------------------------------------------------------------ Index: CHANGES --- 2.8.5rel.1/CHANGES Wed Feb 4 04:07:09 2004 +++ 2.8.5rel.2/CHANGES Thu Apr 22 16:08:10 2004 @@ -1,6 +1,17 @@ Changes since Lynx 2.8 release =============================================================================== +2004-04-22 (2.8.5rel.2 fixes from 2.8.6dev.1) +* correct ifdef in LYgetattrs() to ensure that getattrs() is used only if the + configure script actually found it (report/patch by Paul Gilmartin). +* correct LYcommandList() to allocate data passed to HTList_addObject(), since + LYRemoveFromCloset() may free it (report by FLWM) -TD +* add a null-pointer check to parameter of HTQuoteParameter(), fixes bug + introduced in 2.8.5pre.4 (report by FLWM) -TD +* correct units shown by HTReadProgress() for very low rates - bug from + 2.8.5pre.3 changes (report by PG) -TD +* update current-version in README -LP + 2004-02-04 (2.8.5rel.1) * build fixes for MINGW32 -DK * build fixes for OS/2 (reported by IZ) -TD Index: README --- 2.8.5rel.1/README Sat Jan 24 17:51:04 2004 +++ 2.8.5rel.2/README Thu Apr 22 16:08:10 2004 @@ -1,7 +1,7 @@ Lynx README file -Lynx Version 2.8.4 is the latest release (July 2001). +Lynx Version 2.8.5 is the latest release (February 2004). See the CHANGES file for a complete record of all changes and bug fixes. New releases are announced on the lynx-dev mailing list (see below). Index: WWW/Library/Implementation/HTString.c --- 2.8.5rel.1/WWW/Library/Implementation/HTString.c Wed Jan 28 11:30:38 2004 +++ 2.8.5rel.2/WWW/Library/Implementation/HTString.c Thu Apr 22 16:08:10 2004 @@ -877,11 +877,15 @@ CONST char *, parameter) { size_t i; - size_t last = strlen(parameter); + size_t last; size_t n = 0; size_t quoted = 0; char * result; + if (parameter == 0) + parameter = ""; + + last = strlen(parameter); for (i=0; i < last; ++i) if (strchr("\\&#$^*?(){}<>\"';`|", parameter[i]) != 0 || isspace(UCH(parameter[i]))) Index: WWW/Library/Implementation/HTUtils.h --- 2.8.5rel.1/WWW/Library/Implementation/HTUtils.h Wed Feb 4 04:07:09 2004 +++ 2.8.5rel.2/WWW/Library/Implementation/HTUtils.h Thu Apr 22 16:08:10 2004 @@ -571,6 +571,10 @@ #define TRACE_CFG (TRACE_bit(3)) #define TRACE_BSTRING (TRACE_bit(4)) +#if defined(USE_VERTRACE) && !defined(LY_TRACELINE) +#define LY_TRACELINE __LINE__ +#endif + #if defined(LY_TRACELINE) #define LY_SHOWWHERE fprintf( tfp, "%s: %d: ", __FILE__, LY_TRACELINE ), #else Index: configure --- 2.8.5rel.1/configure Wed Feb 4 04:07:09 2004 +++ 2.8.5rel.2/configure Wed Feb 4 04:07:09 2004 @@ -723,7 +723,7 @@ PACKAGE=lynx # $Format: "VERSION=$ProjectVersion$"$ -VERSION=2.8.5rel.1 +VERSION=2.8.5rel.2 Index: configure.in --- 2.8.5rel.1/configure.in Wed Feb 4 04:07:09 2004 +++ 2.8.5rel.2/configure.in Wed Feb 4 04:07:09 2004 @@ -5,7 +5,7 @@ dnl dnl ask PRCS to plug-in the project-version for the configure-script. dnl $Format: "AC_REVISION($ProjectVersion$)"$ -AC_REVISION(2.8.5rel.1) +AC_REVISION(2.8.5rel.2) # Save the original $CFLAGS so we can distinguish whether the user set those # in the environment, or whether autoconf added -O and -g options: @@ -33,7 +33,7 @@ PACKAGE=lynx dnl ask PRCS to plug-in the project-version for the packages. # $Format: "VERSION=$ProjectVersion$"$ -VERSION=2.8.5rel.1 +VERSION=2.8.5rel.2 AC_SUBST(PACKAGE) AC_SUBST(VERSION) AC_SUBST(DESTDIR) Index: lynx.cfg --- 2.8.5rel.1/lynx.cfg Wed Jan 28 11:30:38 2004 +++ 2.8.5rel.2/lynx.cfg Wed Jan 28 11:30:38 2004 @@ -3,10 +3,10 @@ # or Lynx_Dir:lynx.cfg (VMS) # # $Format: "#PRCS LYNX_VERSION \"$ProjectVersion$\""$ -#PRCS LYNX_VERSION "2.8.5rel.1" +#PRCS LYNX_VERSION "2.8.5rel.2" # # $Format: "#PRCS LYNX_DATE \"$ProjectDate$\""$ -#PRCS LYNX_DATE "Wed, 04 Feb 2004 04:07:09 -0800" +#PRCS LYNX_DATE "Thu, 22 Apr 2004 16:08:10 -0700" # # Definition pairs are of the form VARIABLE:DEFINITION # NO spaces are allowed between the pair items. Index: src/HTAlert.c --- 2.8.5rel.1/src/HTAlert.c Sat Jan 24 17:51:04 2004 +++ 2.8.5rel.2/src/HTAlert.c Thu Apr 22 16:08:10 2004 @@ -165,13 +165,16 @@ static long kb_units = 1024; CONST char *u = HTProgressUnits(LYTransferRate); - if ( (LYTransferRate == rateKB || LYTransferRate == rateEtaKB_maybe) - && (n >= 10 * kb_units) ) - sprintf(s, "%ld", n/kb_units); - else if ((LYTransferRate == rateKB || LYTransferRate == rateEtaKB_maybe) - && (n > 999)) /* Avoid switching between 1016b/s and 1K/s */ - sprintf(s, "%.2g", ((double)n)/kb_units); - else { + if (LYTransferRate == rateKB || LYTransferRate == rateEtaKB_maybe) { + if (n >= 10 * kb_units) { + sprintf(s, "%ld", n/kb_units); + } else if (n > 999) { /* Avoid switching between 1016b/s and 1K/s */ + sprintf(s, "%.2g", ((double)n)/kb_units); + } else { + sprintf(s, "%ld", n); + u = HTProgressUnits(rateBYTES); + } + } else { sprintf(s, "%ld", n); } Index: src/LYKeymap.c --- 2.8.5rel.1/src/LYKeymap.c Sun Jun 1 18:16:28 2003 +++ 2.8.5rel.2/src/LYKeymap.c Thu Apr 22 16:08:10 2004 @@ -1075,8 +1075,11 @@ unsigned j; myList = HTList_new(); for (j = 0; revmap[j].name != 0; j++) { - if (revmap[j].doc != 0) - HTList_addObject(myList, (char *)revmap[j].name); + if (revmap[j].doc != 0) { + char *data = NULL; + StrAllocCopy(data, revmap[j].name); + HTList_addObject(myList, data); + } } } return myList; Index: userdefs.h --- 2.8.5rel.1/userdefs.h Mon Feb 2 12:02:28 2004 +++ 2.8.5rel.2/userdefs.h Mon Feb 2 12:02:28 2004 @@ -1360,11 +1360,11 @@ * the version definition with the Project Version on checkout. Just * ignore it. - kw */ /* $Format: "#define LYNX_VERSION \"$ProjectVersion$\""$ */ -#define LYNX_VERSION "2.8.5rel.1" +#define LYNX_VERSION "2.8.5rel.2" #define LYNX_WWW_HOME "http://lynx.isc.org/" #define LYNX_WWW_DIST "http://lynx.isc.org/current/" /* $Format: "#define LYNX_DATE \"$ProjectDate$\""$ */ -#define LYNX_DATE "Wed, 04 Feb 2004 04:07:09 -0800" +#define LYNX_DATE "Thu, 22 Apr 2004 16:08:10 -0700" #define LYNX_DATE_OFF 5 /* truncate the automatically-generated date */ #define LYNX_DATE_LEN 11 /* truncate the automatically-generated date */