diff options
Diffstat (limited to 'WWW/Library')
-rw-r--r-- | WWW/Library/Implementation/HTDOS.c | 4 | ||||
-rw-r--r-- | WWW/Library/Implementation/HTDOS.h | 2 | ||||
-rw-r--r-- | WWW/Library/Implementation/HTFormat.c | 2 | ||||
-rw-r--r-- | WWW/Library/Implementation/HTTP.c | 3 | ||||
-rw-r--r-- | WWW/Library/Implementation/HTUtils.h | 6 | ||||
-rw-r--r-- | WWW/Library/Implementation/HTVMSUtils.c | 4 | ||||
-rw-r--r-- | WWW/Library/Implementation/HTVMSUtils.h | 2 | ||||
-rw-r--r-- | WWW/Library/Implementation/HTWSRC.c | 2 |
8 files changed, 15 insertions, 10 deletions
diff --git a/WWW/Library/Implementation/HTDOS.c b/WWW/Library/Implementation/HTDOS.c index c90702d4..8ec1caf5 100644 --- a/WWW/Library/Implementation/HTDOS.c +++ b/WWW/Library/Implementation/HTDOS.c @@ -9,7 +9,7 @@ * Make a copy of the source argument in the result, allowing some extra * space so we can append directly onto the result without reallocating. */ -PRIVATE char * copy_plus ARGS2(char **, result, char *, source) +PRIVATE char * copy_plus ARGS2(char **, result, CONST char *, source) { int length = strlen(source); HTSprintf0(result, "%-*s", length+10, source); @@ -26,7 +26,7 @@ PRIVATE char * copy_plus ARGS2(char **, result, char *, source) ** returns WWW file specification ** */ -char * HTDOS_wwwName ARGS1(char *, dosname) +char * HTDOS_wwwName ARGS1(CONST char *, dosname) { static char *wwwname = NULL; char *cp_url = copy_plus(&wwwname, dosname); diff --git a/WWW/Library/Implementation/HTDOS.h b/WWW/Library/Implementation/HTDOS.h index 4907f6ae..319a6358 100644 --- a/WWW/Library/Implementation/HTDOS.h +++ b/WWW/Library/Implementation/HTDOS.h @@ -16,7 +16,7 @@ ** returns WWW file specification ** */ -char * HTDOS_wwwName PARAMS((char * dosname)); +char * HTDOS_wwwName PARAMS((CONST char * dosname)); /* PUBLIC HTDOS_name() diff --git a/WWW/Library/Implementation/HTFormat.c b/WWW/Library/Implementation/HTFormat.c index 868d5d51..e71b12f4 100644 --- a/WWW/Library/Implementation/HTFormat.c +++ b/WWW/Library/Implementation/HTFormat.c @@ -541,7 +541,7 @@ PUBLIC void HTDisplayPartial NOARGS */ ) { NumOfLines_partial = HText_getNumOfLines(); - HText_pageDisplay(Newline_partial, ""); + HText_pageDisplay(Newline_partial); } } #else /* nothing */ diff --git a/WWW/Library/Implementation/HTTP.c b/WWW/Library/Implementation/HTTP.c index 193cf4bd..3e39dee7 100644 --- a/WWW/Library/Implementation/HTTP.c +++ b/WWW/Library/Implementation/HTTP.c @@ -558,7 +558,8 @@ try_again: if (!(LYUserSpecifiedURL || LYNoRefererHeader || LYNoRefererForThis) && strcmp(HTLoadedDocumentURL(), "")) { - char *cp = HTLoadedDocumentURL(); + char *cp = LYRequestReferer; + if (!cp) cp = HTLoadedDocumentURL(); /* @@@ Try both? - kw */ StrAllocCat(command, "Referer: "); if (!strncasecomp(cp, "LYNXIMGMAP:", 11)) { char *cp1 = strchr(cp, '#'); diff --git a/WWW/Library/Implementation/HTUtils.h b/WWW/Library/Implementation/HTUtils.h index fa19ea51..38710d77 100644 --- a/WWW/Library/Implementation/HTUtils.h +++ b/WWW/Library/Implementation/HTUtils.h @@ -114,7 +114,11 @@ #define ANSI_PREPRO 1 #endif -#if defined(__CYGWIN__) /* 1998/12/31 (Thu) 16:13:46 */ +#if defined(__CYGWIN32__) && ! defined(__CYGWIN__) +#define __CYGWIN__ 1 +#endif + +#if defined(__CYGWIN__) /* 1998/12/31 (Thu) 16:13:46 */ #include <windows.h> /* #include "windef.h" */ #define BOOLEAN_DEFINED #undef HAVE_POPEN /* FIXME: does this not work, or is it missing */ diff --git a/WWW/Library/Implementation/HTVMSUtils.c b/WWW/Library/Implementation/HTVMSUtils.c index 57eeb09b..cc367a66 100644 --- a/WWW/Library/Implementation/HTVMSUtils.c +++ b/WWW/Library/Implementation/HTVMSUtils.c @@ -243,9 +243,9 @@ char *colon; ** */ PUBLIC char * HTVMS_wwwName ARGS1( - char *, vmsname) + CONST char *, vmsname) { -static char wwwname[256]; +static char wwwname[LY_MAXPATH]; char *src, *dst; int dir; dst = wwwname; diff --git a/WWW/Library/Implementation/HTVMSUtils.h b/WWW/Library/Implementation/HTVMSUtils.h index c5bcb666..9bcff503 100644 --- a/WWW/Library/Implementation/HTVMSUtils.h +++ b/WWW/Library/Implementation/HTVMSUtils.h @@ -87,7 +87,7 @@ PUBLIC BOOL HTVMS_checkAccess PARAMS(( ** */ PUBLIC char * HTVMS_wwwName PARAMS(( - char * vmsname)); + CONST char * vmsname)); /* PUBLIC HTVMS_name() ** CONVERTS WWW name into a VMS name diff --git a/WWW/Library/Implementation/HTWSRC.c b/WWW/Library/Implementation/HTWSRC.c index 5dd7856a..7e1d899c 100644 --- a/WWW/Library/Implementation/HTWSRC.c +++ b/WWW/Library/Implementation/HTWSRC.c @@ -244,7 +244,7 @@ PRIVATE void WSRCParser_put_character ARGS2(HTStream*, me, char, c) PRIVATE BOOL write_cache ARGS1(HTStream *, me) { FILE * fp; - char cache_file_name[256]; + char cache_file_name[LY_MAXPATH]; char * www_database; if (!me->par_value[PAR_DATABASE_NAME] || !me->par_value[PAR_IP_NAME] |