[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev [PATCH] to dev15 - fix for win32
From: |
Leonid Pauzner |
Subject: |
Re: lynx-dev [PATCH] to dev15 - fix for win32 |
Date: |
Mon, 22 Nov 1999 14:28:54 +0300 (MSK) |
> * Bug in LYGetHostByName code fixed (Windows only problem). - SH
This is not windows-only changes - there is the #else case.
[I have no sources handy but seems strange how else that was worked
on Unixes previously: valid_hostname(host) was called for unitialized
argument?]
> ---
> diff -Bur lynx283.d15/WWW/Library/Implementation/HTTCP.c
> lynx283.w32/WWW/Library/Implementation/HTTCP.c
> --- lynx283.d15/WWW/Library/Implementation/HTTCP.c Thu Oct 21 23:56:48 1999
> +++ lynx283.w32/WWW/Library/Implementation/HTTCP.c Mon Nov 22 10:21:04 1999
> @@ -693,6 +693,12 @@
> return NULL;
> }
> +#ifdef _WINDOWS_NSL /* 1999/11/21 (Sun) 21:35:19 */
> + strncpy(host, str, (size_t)512);
> +#else
> + host = str;
> +#endif /* _WINDOWS_NSL */
> +
> if (!valid_hostname(host)) {
> lynx_nsl_status = HT_NOT_ACCEPTABLE;
> #ifdef NO_RECOVERY
> @@ -704,12 +710,6 @@
> #endif
> return NULL;
> }
> -
> -#ifdef _WINDOWS_NSL
> - strncpy(host, str, (size_t)512);
> -#else
> - host = str;
> -#endif /* _WINDOWS_NSL */
> #ifdef MVS /* Outstanding problem with crash in MVS gethostbyname */
> CTRACE((tfp, "LYGetHostByName: Calling gethostbyname(%s)\n", host));
> ----
> --
> $B;37A8)N);:6H5;=QC;4|Bg3X9;!!>1Fb9;(B $BEE;R>pJs2J(B
> address@hidden)!!9-9,(B (E-Mail address@hidden)